Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Later
-
None
-
None
Description
Exposing such a method could be useful to initialize a buffer without going through a CPU-to-device memory copy.
For example CUDA expose several memset-like APIs to initialize GPU memory with different initializer widths:
https://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MEM.html#group__CUDA__MEM_1g6e582bf866e9e2fb014297bfaf354d7b