[Distutils] Compiling CUDA code

Cristian S. Rocha crocha at dc.uba.ar
Thu Jun 14 17:22:20 CEST 2007


Hello,

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?

Thanks,
Cristian.

-- 
  Lic. Cristian S. Rocha
  [http://www.dc.uba.ar/~crocha]

+
| Grupo de Modelado Molecular (http://gmm.qi.fcen.uba.ar/)
|  Departamento de Computación
|  Departamento de Química Inorgánica y Física Química 
|   Facultad de Ciencias Exactas y Naturales,
|    Universidad de Buenos Aires.
+
| Pabellón I - Ciudad Universitaria
| (C1428EGA) - Buenos Aires - Argentina 
| Tel./Fax:+54-11-4576-3359 -
| Conmutador: +54-11-4576-3390 al 96, int. 701/702
+



More information about the Distutils-SIG mailing list