Description Usage Arguments Details References
CUDA memory management utilities.
1 2 3 4 5 6 7 8 9 | cudaFree(dev_ptr)
cudaMalloc(count, size)
cudaMemcpy(dst, src, count, size, kind)
cudaMemGetInfo()
cudaMemset(dev_ptr, value, count, size)
|
dev_ptr |
Pointer to device memory, i.e. an object returned from |
count |
Number of elements (NOT BYTES). |
size |
A standin for |
dst, src |
Device/host vectors. |
kind |
Description of the kind of copy. Acceptable values are |
value |
Integer value. Probably |
cudaFree()
Manually frees device memory. Does not destroy the R object
(so calling this will make the pointer managed by the R object invalid).
Use of this function will not cause a double free when the R object is gc'd.
cudaMalloc()
allocates device memory and returns an external pointer.
This memory is managed by the R garbage collector.
cudaMemcpy()
copies memory host-to-device, device-to-host, or
device-to-device.
cudaMemGetInfo()
returns a list containing the number of free bytes
and the number of total bytes of memory on the current device.
cudaMemset()
memset for device memory.
NVIDIA CUDA Runtime API https://docs.nvidia.com/cuda/cuda-runtime-api/index.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.