Allocates memory on the device.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr) | :: | ptr |
Pointer to allocated device memory |
|||
integer(kind=c_size_t), | value | :: | count |
Requested allocation size in bytes |
Returns cudaSuccess
if memory was allocated successfully,
or cudaErrorMemoryAllocation
if the memory could not be allocated.