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.
// allocate memory on GPU
REAL*4, ALLOCATABLE :: VECTOR_A( : )
Does anyone have any methods to achieve this?