Hi,
Now I want to use CUDAMemory as a reference to develop a custom WolframGPULibrary(WGL) program bound with CUDA C/C++ language. I found some reference like “http://mathematica.stackexchange.com/questions/47702/calling-cuda-library-functions/60261#60261” and “http://mathematica.stackexchange.com/questions/60424/how-to-use-sparsearray-in-cuda”. But when I tried to copy the Answer’s code and test in my platform, it showed
“…\error LNK2019: unresolved external symbol CUDA_Runtime_getDeviceMemory referenced in function “int __cdecl iFourier(struct st_WGL_Memory_p _t *,struct st_WGL_Memory_p _t *)” (?iFourier@@YAHPEAUst_WGL_Memory _p _t@@0@Z)”
I only changed some CreateLibrary syntax duo to the windows OS. I have checked almost the SystemFiles\Links\GPUTools\Include files but I could not find any implements with function “CUDA_Runtime_getDeviceMemory”.
Have the wgl abandoned? If it’s true, how can I use CUDAMemory ID as a reference to cooperate with CUDA C function such as cuSparse?
Attach files are the .cu file and mathematica CreateLibrary code.
My platform
Windows 10 64 bit
Mathematica 10.4
CUDA paclet 10.2.0.3
CUDA Drivers 364.51
CUDA toolkit 7.0