Ubuntu 12.04, pyCUDA, nvcc fatal : Path to libdevice library not specified

I downloaded pycuda-2013.1.1 and modified ./configure like :

siteconf.py:

BOOST_INC_DIR = [’/usr/local/include/boost’]
BOOST_LIB_DIR = [’/usr/local/lib’]
BOOST_COMPILER = ‘gcc46’
USE_SHIPPED_BOOST = False
BOOST_PYTHON_LIBNAME = [‘boost_python’]
BOOST_THREAD_LIBNAME = [‘boost_thread’]
CUDA_TRACE = False
CUDA_ROOT = ‘/usr/local/cuda-5.5/bin’
CUDA_ENABLE_GL = False
CUDA_ENABLE_CURAND = True
CUDADRV_LIB_DIR = [’/usr/local/cuda-5.5/lib64’]
CUDADRV_LIBNAME = [‘cuda’]
CUDART_LIB_DIR = [’/usr/local/cuda-5.5/lib’, ‘/usr/local/cuda-5.5/lib64’]
CUDART_LIBNAME = [‘cudart’]
CURAND_LIB_DIR = [’/usr/local/cuda-5.5/lib’, ‘/usr/local/cuda-5.5/lib64’]
CURAND_LIBNAME = [‘curand’]
CXXFLAGS =
LDFLAGS =

but, python did not add correct libdevice:

root@Computer:/home/guolong/sailfish/examples# ./ldc_2d.py
[ 2112 INFO Master/Computer] Machine master starting with PID 2467
[ 2216 INFO Master/Computer] Sailfish version: 5beab7bbfe85df5621899780dd0a992fcc312b2e
[ 2216 INFO Master/Computer] Handling subdomains: [0]
[ 2217 INFO Master/Computer] Subdomain -> GPU map: {0: 0}
[ 2341 INFO Subdomain/0] Initializing subdomain.
Process Subdomain/0:
Traceback (most recent call last):
File “/usr/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/usr/lib/python2.7/multiprocessing/process.py”, line 114, in run
self._target(*self._args, **self._kwargs)
File “/home/guolong/sailfish/sailfish/master.py”, line 60, in _start_subdomain_runner
runner.run()
File “/home/guolong/sailfish/sailfish/subdomain_runner.py”, line 1277, in run
self._init_compute()
File “/home/guolong/sailfish/sailfish/subdomain_runner.py”, line 698, in _init_compute
self._update_compute_code()
File “/home/guolong/sailfish/sailfish/subdomain_runner.py”, line 694, in _update_compute_code
self.module = self.backend.build(code)
File “/home/guolong/sailfish/sailfish/backend_cuda.py”, line 216, in build
cache_dir=cache) #options=[’-Xopencc’, ‘-O0’]) #, options=[’–use_fast_math’])
File “/usr/local/lib/python2.7/dist-packages/pycuda-2013.1.1-py2.7-linux-x86_64.egg/pycuda/compiler.py”, line 261, in init
arch, code, cache_dir, include_dirs)
File “/usr/local/lib/python2.7/dist-packages/pycuda-2013.1.1-py2.7-linux-x86_64.egg/pycuda/compiler.py”, line 251, in compile
return compile_plain(source, options, keep, nvcc, cache_dir)
File “/usr/local/lib/python2.7/dist-packages/pycuda-2013.1.1-py2.7-linux-x86_64.egg/pycuda/compiler.py”, line 134, in compile_plain
cmdline, stdout=stdout.decode(“utf-8”), stderr=stderr.decode(“utf-8”))
CompileError: nvcc compilation of /tmp/tmpGGrnyl/kernel.cu failed
[command: nvcc --cubin --prec-div=false --prec-sqrt=false -arch sm_30 -I/usr/local/lib/python2.7/dist-packages/pycuda-2013.1.1-py2.7-linux-x86_64.egg/pycuda/cuda kernel.cu]
[stderr:
nvcc fatal : Path to libdevice library not specified
]

sailfish is an free computational fluid dynamics solver , it need pycuda as a platform.
when i install pycuda :

root@Computer:/home/guolong/drv/pycuda-2013.1.1# make -j 4
ctags -R src || true
/usr/bin/python setup.py build
running build
running build_py
running build_ext
root@Computer:/home/guolong/drv/pycuda-2013.1.1#

Nothing turned out to be wrong.

root@Computer:/home/guolong/drv/pycuda-2013.1.1# sudo make installctags -R src || true
/usr/bin/python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to pycuda.egg-info/requires.txt
writing pycuda.egg-info/PKG-INFO
writing top-level names to pycuda.egg-info/top_level.txt
writing dependency_links to pycuda.egg-info/dependency_links.txt
reading manifest file ‘pycuda.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no files found matching ‘.cpp’ under directory ‘bpl-subset/bpl_subset/boost’
warning: no files found matching '
.html’ under directory ‘bpl-subset/bpl_subset/boost’
warning: no files found matching ‘.inl’ under directory ‘bpl-subset/bpl_subset/boost’
warning: no files found matching '
.txt’ under directory ‘bpl-subset/bpl_subset/boost’
warning: no files found matching ‘.h’ under directory ‘bpl-subset/bpl_subset/libs’
warning: no files found matching '
.ipp’ under directory ‘bpl-subset/bpl_subset/libs’
warning: no files found matching ‘*.pl’ under directory ‘bpl-subset/bpl_subset/libs’
writing manifest file ‘pycuda.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/autoinit.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/curandom.py -> build/bdist.linux-x86_64/egg/pycuda
creating build/bdist.linux-x86_64/egg/pycuda/gl
copying build/lib.linux-x86_64-2.7/pycuda/gl/autoinit.py -> build/bdist.linux-x86_64/egg/pycuda/gl
copying build/lib.linux-x86_64-2.7/pycuda/gl/init.py -> build/bdist.linux-x86_64/egg/pycuda/gl
copying build/lib.linux-x86_64-2.7/pycuda/cumath.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/_mymako.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/_driver.so -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/reduction.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/debug.py -> build/bdist.linux-x86_64/egg/pycuda
creating build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/operator.py -> build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/cg.py -> build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/inner.py -> build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/init.py -> build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/pkt_build.py -> build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/coordinate.py -> build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/packeted.py -> build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/_cluda.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/compiler.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/tools.py -> build/bdist.linux-x86_64/egg/pycuda
creating build/bdist.linux-x86_64/egg/pycuda/compyte
copying build/lib.linux-x86_64-2.7/pycuda/compyte/dtypes.py -> build/bdist.linux-x86_64/egg/pycuda/compyte
copying build/lib.linux-x86_64-2.7/pycuda/compyte/array.py -> build/bdist.linux-x86_64/egg/pycuda/compyte
copying build/lib.linux-x86_64-2.7/pycuda/compyte/init.py -> build/bdist.linux-x86_64/egg/pycuda/compyte
creating build/bdist.linux-x86_64/egg/pycuda/cuda
copying build/lib.linux-x86_64-2.7/pycuda/cuda/pycuda-complex.hpp -> build/bdist.linux-x86_64/egg/pycuda/cuda
copying build/lib.linux-x86_64-2.7/pycuda/cuda/pycuda-helpers.hpp -> build/bdist.linux-x86_64/egg/pycuda/cuda
copying build/lib.linux-x86_64-2.7/pycuda/cuda/pycuda-complex-impl.hpp -> build/bdist.linux-x86_64/egg/pycuda/cuda
copying build/lib.linux-x86_64-2.7/pycuda/driver.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/_pvt_struct.so -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/init.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/elementwise.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/scan.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/gpuarray.py -> build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/characterize.py -> build/bdist.linux-x86_64/egg/pycuda
byte-compiling build/bdist.linux-x86_64/egg/pycuda/autoinit.py to autoinit.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/curandom.py to curandom.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/gl/autoinit.py to autoinit.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/gl/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/cumath.py to cumath.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/_mymako.py to _mymako.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/reduction.py to reduction.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/debug.py to debug.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/operator.py to operator.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/cg.py to cg.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/inner.py to inner.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/pkt_build.py to pkt_build.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/coordinate.py to coordinate.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/packeted.py to packeted.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/_cluda.py to _cluda.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/compiler.py to compiler.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/tools.py to tools.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/compyte/dtypes.py to dtypes.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/compyte/array.py to array.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/compyte/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/driver.py to driver.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/elementwise.py to elementwise.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/scan.py to scan.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/gpuarray.py to gpuarray.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/characterize.py to characterize.pyc
creating stub loader for pycuda/_driver.so
creating stub loader for pycuda/_pvt_struct.so
byte-compiling build/bdist.linux-x86_64/egg/pycuda/_driver.py to _driver.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/_pvt_struct.py to _pvt_struct.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating ‘dist/pycuda-2013.1.1-py2.7-linux-x86_64.egg’ and adding ‘build/bdist.linux-x86_64/egg’ to it
removing ‘build/bdist.linux-x86_64/egg’ (and everything under it)
Processing pycuda-2013.1.1-py2.7-linux-x86_64.egg
removing ‘/usr/local/lib/python2.7/dist-packages/pycuda-2013.1.1-py2.7-linux-x86_64.egg’ (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/pycuda-2013.1.1-py2.7-linux-x86_64.egg
Extracting pycuda-2013.1.1-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages
pycuda 2013.1.1 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/dist-packages/pycuda-2013.1.1-py2.7-linux-x86_64.egg
Processing dependencies for pycuda==2013.1.1
Searching for decorator==3.4.0
Best match: decorator 3.4.0
Processing decorator-3.4.0-py2.7.egg
decorator 3.4.0 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/decorator-3.4.0-py2.7.egg
Searching for pytest==2.5.0
Best match: pytest 2.5.0
Processing pytest-2.5.0-py2.7.egg
pytest 2.5.0 is already the active version in easy-install.pth
Installing py.test script to /usr/local/bin
Installing py.test-2.7 script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages/pytest-2.5.0-py2.7.egg
Searching for pytools==2013.5.7
Best match: pytools 2013.5.7
Processing pytools-2013.5.7-py2.7.egg
pytools 2013.5.7 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/pytools-2013.5.7-py2.7.egg
Searching for py==1.4.19
Best match: py 1.4.19
Processing py-1.4.19-py2.7.egg
py 1.4.19 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/py-1.4.19-py2.7.egg
Finished processing dependencies for pycuda==2013.1.1