Allocate a GPU buffer with size. Allocated buffer head address will be returned by ptr, and the actual allocated size can be larger than requested because of the buffer granularity requirements from all types of NCCL optimizations.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(out) | :: | ptr |
Buffer address |
||
integer(kind=c_size_t), | intent(in), | value | :: | alloc_bytes |
Number of bytes to allocate |
Completion status