Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 465 Bytes

smart_ptr.md

File metadata and controls

27 lines (20 loc) · 465 Bytes

Smart pointers

CUDA Device/Host Memory

  • cudaMalloc / cudaFree
cutf::memory::get_device_unique_ptr<type>(size)
  • cudaMallocHost / cudaFreeHost
cutf::memory::get_host_unique_ptr<type>(size)

CUDA Stream

  • cudaCreateStream / cudaDestroyStream
cutf::stream::get_stream_unique_ptr(device_id = 0)

cuBLAS Handle

  • cublasCreate / cublasDestroy
cutf::cublas::get_cublas_unique_ptr(device_id = 0)