Hi everyone,
Recently, I want to call CUDA from Fortran through dll. It works well. But when I want to allocate some memory on GPU for the whole program period, it failed. I am searching a way to allocate memory on GPU from Fortran.
For example:
[codebox]C/C++:
void FUN(…)
{
// allocate memory on GPU
…
}
Fortran:
REAL*4, ALLOCATABLE :: VECTOR_A( : )
CALL FUN(VECTOR_A)[/codebox]
Does anyone have any methods to achieve this?
Thanks!
Best regards,
–
Peter