CuVec icon indicating copy to clipboard operation
CuVec copied to clipboard

separate cpu/cuda modules

Open casperdcl opened this issue 2 years ago • 0 comments

current

  • cuvec.cuvec: at compile time, use cudaMallocManaged/cudaFree if available, otherwise use malloc/free
    • at runtime, people with NVIDIA GPUs are forced to allocate memory on their device

proposed

  • cuvec.cuvec_cpu: uses malloc/free
  • cuvec.cuvec_cuda: if available, use cudaMallocManaged/cudaFree, otherwise ImportError
  • cuvec.cuvec: point to one of the above

casperdcl avatar Dec 21 '23 11:12 casperdcl