id: 12334    nodeId: 12334    type: General    point: 155.0    linkPoint: .0    maker: cella    permission: linkable    made at: 2017.07.10 02:55    edited at: 2017.07.21 02:40
how to use CUDA C program in Python
https://stackoverflow.com/questions/43002915/loading-a-shared-library-cuda-in-python-via-ctypes-cannot-dynamically-load
in short:
$ nvcc --ptxas-options=-v --compiler-options '-fPIC' --shared -o test_function.so testCuda.cu

the reference document linked from the above:
http://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/#options-for-altering-compiler-linker-behavior

Return to how to use CUDA C program in Python