Hi,
I am trying to build pyCUDA on my machine with the following siteconf.py:
BOOST_INC_DIR = ['/usr/include']
BOOST_LIB_DIR = ['/usr/lib']
BOOST_COMPILER = 'gcc43'
USE_SHIPPED_BOOST = False
BOOST_PYTHON_LIBNAME = ['boost_python']
BOOST_THREAD_LIBNAME = ['boost_thread']
CUDA_TRACE = False
CUDA_ROOT = '/usr/local/cuda'
CUDA_ENABLE_GL = False
CUDA_ENABLE_CURAND = True
CUDADRV_LIB_DIR = ['/usr/lib']
CUDADRV_LIBNAME = ['cuda']
CUDART_LIB_DIR = ['${CUDA_ROOT}/lib64', '${CUDA_ROOT}/lib']
CUDART_LIBNAME = ['cudart']
CURAND_LIB_DIR = ['${CUDA_ROOT}/lib64', '${CUDA_ROOT}/lib']
CURAND_LIBNAME = ['curand']
CXXFLAGS = []
LDFLAGS = []
If I search in /usr/lib for the BOOST_PYTHON_LIBNAME and BOOST_THREAD_LIBNAME
and even though both appear they cause an error to be thrown when attempting to
build the installer. In order to cause that error with ld to go away I
manually
changed the siteconf.py to what you see above. Now, the installer builds
properly.
When I run:
sudo python setup.py install
I receive the following error:
*** CUDA_ROOT not set, and nvcc not in path. Giving up.
This is weird to me because both the $CUDA_ROOT env variable and nvcc are set.
If I echo $CUDA_ROOT, I see /usr/local/cuda. I have tried this as root and
using sudo, and all print the same directory. The command nvcc also works from
the shell.
I have seen some other people posting with this problem and they all had
problems with the siteconf.py file. No matter what options I try giving the
build I always end up with the same error when attempting to install.
Cheers,
William Savran
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda