我正在尝试安装Manuel Chakravarty的加速模块,但是在cuda依赖方面遇到了一些问题。
我已经从NVIDIA安装了CUDA开发人员驱动程序和CUDA工具包。具体来说:
ludflu@beefy ~/Downloads $ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2011 NVIDIA Corporation
Built on Thu_Jan_12_14:41:45_PST_2012
Cuda compilation tools, release 4.1, V0.2.1221
安装CUDA Cabal模块失败,错误信息如下:
cabal install cuda
Resolving dependencies...
[1 of 1] Compiling Main ( /tmp/cuda-0.4.1.07892/cuda-0.4.1.0/Setup.hs, /tmp/cuda-0.4.1.07892/cuda-0.4.1.0/dist/setup/Main.o )
Linking /tmp/cuda-0.4.1.07892/cuda-0.4.1.0/dist/setup/setup ...
Configuring cuda-0.4.1.0...
...
checking for library containing cuDriverGetVersion... no
configure: error: could not find CUDA driver library
********************************************************************************
The configuration process failed to locate your CUDA installation. Ensure that
you have installed the driver and developer toolkit, available from:
http://developer.nvidia.com/cuda-downloads
Then make sure that "nvcc" is available in your PATH, or set the appropriate
directories with --extra-include-dirs and --extra-lib-dirs.
********************************************************************************
cabal: Error: some packages failed to install:
cuda-0.4.1.0 failed during the configure step. The exception was:
ExitFailure 1
所以我尝试指定路径:
cabal --extra-include-dirs=/usr/local/cuda/include --extra-lib-dirs=/usr/local/cuda/lib install cuda
但是它也会失败。
你有什么建议接下来该尝试什么?
$LD_LIBRARY_PATH
似乎不足以让模块实际工作,在 Ubuntu Oneiric 上至少是这样:我还需要设置etc/ld.so.conf.d/cuda.conf
文件。 - leftaroundabout