non*_*ont 5 haskell cuda gpu nvidia
我正在尝试安装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
Run Code Online (Sandbox Code Playgroud)
这样安装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
Run Code Online (Sandbox Code Playgroud)
所以我尝试指定路径:
cabal --extra-include-dirs=/usr/local/cuda/include --extra-lib-dirs=/usr/local/cuda/lib install cuda
Run Code Online (Sandbox Code Playgroud)
但这以相同的方式失败。
关于下一步应该尝试的任何建议?
小智 4
此错误通常表明configure 无法找到CUDA 库对象。LD_LIBRARY_PATH具体来说,除了使用--extra-include_dirs和之外,您可能还必须进行设置--extra-lib-dirs。尝试以下操作,
env LD_LIBRARY_PATH=/usr/local/cuda/lib cabal --extra-include-dirs=/usr/local/cuda/include --extra-lib-dirs=/usr/local/cuda/lib install cuda
Run Code Online (Sandbox Code Playgroud)
您没有指定您正在使用哪个系统。如果您使用的是 64 位 Linux 系统,则可能必须/usr/local/cuda/lib64使用/usr/local/cuda/lib.
| 归档时间: |
|
| 查看次数: |
2228 次 |
| 最近记录: |