Wrapper function for "cudaMallocManaged"
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(in) | :: | nbytes | |||
| type(c_ptr), | intent(inout) | :: | dPtr |
integer function device_malloc_managed(nbytes, dPtr) result (stat) !> Wrapper function for "cudaMallocManaged" implicit none integer(int64), intent(in) :: nbytes type(c_ptr), intent(inout) :: dPtr stat = cudaMallocManaged(dPtr, int(nbytes,c_size_t), cudaMemAttachGlobal) return end function device_malloc_managed