I am new to use Fortran, and for a c function like below:
cudaError_t cudaMalloc (void** devPtr, size_t size)
Allocates size bytes of linear memory on the device and returns in *devPtr a pointer to the allocated memory. The allocated memory is suitably aligned for any kind of variable. The memory is not cleared. cudaMalloc() returns cudaErrorMemoryAllocation in case of failure.
Parameters:
devPtr - Pointer to allocated device memory
size - Requested allocation size in bytes
Returns:
cudaSuccess, cudaErrorMemoryAllocation
I want to create an Fortran interface to use this c function but how to fix void** ptr? Can anyone help me? Thanks in advance!