wbImport doesn't support cudaHostAlloc
MySchizoBuddy opened this issue · 3 comments
MySchizoBuddy commented
wbImport allocates data using malloc and doesn't provide any way to use cudaHostAlloc.
Either provide a switch to enable it or provide an api that allows to read the inputLength without allocating or loading the data. Once inputLength is known I can use cudaHostAlloc for the allocation. I will then need another api that only loads the data and doesn't calculate inputLength.
abduld commented
couldn't you just redefine wbMalloc?
MySchizoBuddy commented
i could but webGPU also needs the new file else my submit will fail.
abduld commented
webgpu is not supposed to be restricted to cuda development, so it would not make sense to make this change on it. If you are doing local development, then you modify wbMalloc.