I would like to use distutils to compile CUDA code. CUDA is an extension of C and C++ to use GPUs capabilities. It need replace the gcc compiler by nvcc command line in unix, and append/modify some others parameters.
I use the following command to generate my VolumeCUDA module before link it to a shared object.
/usr/local/share/cuda/bin/nvcc -Xcompiler -fno-strict-aliasing,-fPIC -o VolumeCUDA.o -c src/VolumeCUDA.cu -I. -I/usr/local/share/cuda/inc -I/usr/include/python2.5 -O3
Exists any easy way to do that?