Software Archive
Read-only legacy content
17061 Discussions

Using Implicit Offload Copy from C function within Fortran code?

vbetro
Beginner
331 Views

If one was to write a C function that allocated the memory and performed the offload operation, and it was called from within a Fortran code (so, ostensibly compiled with icc then ifort), could it utilize Implicit Copy, which is only set up for C/C++?

0 Kudos
2 Replies
Ravi_N_Intel
Employee
331 Views

Are you referring to varaibles used in the lexical scope of an offload region as Implicit Copy.   Then the answer is yes.  If not an example would help to understand what you mean by Implicit copy.

0 Kudos
vbetro
Beginner
331 Views

Ravi,

That is the information I was looking for...thanks!!

We will keep you posted as we move down that road!

Vince

0 Kudos
Reply