Hi Nvidia Community!
I am trying to use Cuda code inside python.
all is going well in building the shared library, but when I try to import it in python I get this Import error: undefined symbol: __cudaRegisterFatBinaryEnd
.
I am using ubuntu 18.04 wsl,
python : 3.6.9
cuda: 11.0
gcc: 7.5.0
compiler the simple.cu file with :nvcc -O3 -I"/mnt/d/workspace/test/cuda/__pyccel__" -c "/mnt/d/workspace/test/cuda/__pyccel__/simple.cu" -o "/mnt/d/workspace/test/cuda/__pyccel__/simple.o"
building with python: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/mnt/d/workspace/test/cuda/__pyccel__ -I/home/rakati/envs/pyccel-1/lib/python3.6/site-packages/numpy/core/include -I/home/rakati/envs/pyccel-1/include -I/usr/include/python3.6m -c simple_wrapper.c -o build/temp.linux-x86_64-3.6/simple_wrapper.o -O3 -I"/mnt/d/workspace/test/cuda/__pyccel__" x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/simple_wrapper.o /mnt/d/workspace/test/cuda/__pyccel__/simple.o -Lcudart -o build/lib.linux-x86_64-3.6/simple.cpython-36m-x86_64-linux-gnu.so
Shared library has been created: /mnt/d/workspace/test/cuda/simple.cpython-36m-x86_64-linux-gnu.so`