Hi William,

What is your card?
Are you sure that the driver is installed correctly?
Check
lspci | grep VGA
it should show the name of your graphics card.

I had the same error on my Lenovo t410 with two video systems (Kubuntu 11.04). The problem is that Windows OEM can automatically switch between them and choose either Intel integrated graphics or the Nvidia NVS 3100M discrete chip depending on particular task. Ubuntu can not do that out-of-box and set integrated card by default. There is a way to 'teach' Ubuntu automatic switching, or, as I did, one may set to use discrete graphics in BIOS settings.

Hope this helps.

Best wishes,
Alexander

15.01.2012 18:53, William Savran пишет:
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


_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to