CuVec
CuVec copied to clipboard
separate cpu/cuda modules
current
cuvec.cuvec: at compile time, usecudaMallocManaged/cudaFreeif available, otherwise usemalloc/free- at runtime, people with NVIDIA GPUs are forced to allocate memory on their device
proposed
cuvec.cuvec_cpu: usesmalloc/freecuvec.cuvec_cuda: if available, usecudaMallocManaged/cudaFree, otherwiseImportErrorcuvec.cuvec: point to one of the above