我正在尝试在我的Ubuntu 12.04服务器上构建Rodinia基准测试套件。 我已经在/ usr / local / cuda目录中安装了 cuda 4.0 。我已经构建了SDk样本。
在运行make命令构建Rodinia基准测试套件时,我遇到了以下错误
~/Downloads/rodinia_2.4$ make
cd cuda/cfd; make; cp euler3d euler3d_double pre_euler3d pre_euler3d_double /home/ncclab/Downloads/rodinia_2.4/bin/linux/cuda
make[1]: Entering directory `/home/ncclab/Downloads/rodinia_2.4/cuda/cfd'
nvcc -O2 -Xptxas -v --gpu-architecture=compute_20 --gpu-code=compute_20 euler3d.cu -o euler3d -I/if10/kw5na/NVIDIA_GPU_Computing_SDK4/C/common/inc -L/if10/kw5na/NVIDIA_GPU_Computing_SDK4/C/lib
euler3d.cu:5: fatal error: helper_cuda.h: No such file or directory
compilation terminated.
make[1]: *** [euler3d] Error 1
make[1]: Leaving directory `/home/ncclab/Downloads/rodinia_2.4/cuda/cfd'
cp: cannot stat `euler3d': No such file or directory
cp: cannot stat `euler3d_double': No such file or directory
cp: cannot stat `pre_euler3d': No such file or directory
cp: cannot stat `pre_euler3d_double': No such file or directory
make: *** [CUDA] Error 1
但是查看cfd目录
ncclab@slave13:~/Downloads/rodinia_2.4$ cd cuda/cfd/ls
**euler3d.cu euler3d_double.cu Makefile Makefile_nvidia pre_euler3d.cu pre_euler3d_double.cu** README run
其他基准
的情况也是如此cd cuda/srad/srad_v2; make; cp srad /home/ncclab/Downloads/rodinia_2.4/bin/linux/cuda/srad_v2
make[1]: Entering directory `/home/ncclab/Downloads/rodinia_2.4/cuda/srad/srad_v2'
/usr/local/cuda/bin/nvcc srad.cu -o srad -I/usr/local/cuda/include -L/usr/local/cuda/lib64
srad.cu:6: fatal error: srad.h: No such file or directory
compilation terminated.
make[1]: *** [release] Error 1
make[1]: Leaving directory `/home/ncclab/Downloads/rodinia_2.4/cuda/srad/srad_v2'
cp: cannot stat `srad': No such file or directory
make: *** [CUDA] Error 1
ncclab@slave13:~/Downloads/rodinia_2.4/cuda/srad/srad_v2$ ls
Makefile Makefile_nvidia README run srad.cu srad.h srad_kernel.cu
它清楚地说明文件存在于目录中。我无法理解为什么会发生这种错误。在这里和谷歌搜索无法帮助我找到原因。有人可以帮助我。
helper_cuda.h包含的文件是什么。我找不到它了。它是gpu计算sdk样本附带的东西吗?如果是这样我没有他们。它的安装有什么问题吗
提前致谢
答案 0 :(得分:2)
更新至latest version of CUDA(目前为5.5)。你会在$ CUDA_PATH / samples / common / inc目录中找到helper _ * .h文件。
您安装的CUDA版本(CUDA 4.0)现在已经很老了,4.0提供的示例在名为cutil的库中使用了一组不同的辅助函数。