Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 ubuntu 系统中安装了 cuda 工具包 5.5 和 5.0,我想编译具有特定版本的 .cu 文件..怎么做?
您可以通过设置适当的环境变量来做到这一点。以下示例适用于 x86_64 机器上的 CUDA 5.5。
export CUDA_HOME=/usr/local/cuda-5.5 export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH} export PATH=${CUDA_HOME}/bin:${PATH}