【发布时间】:2013-06-21 11:02:37
【问题描述】:
当我通过命令编译我的 CUDA 代码时:
nvcc lbm.cu -I/usr/local/NVIDIA_GPU_Computing_SDK/CUDALibraries/common/inc -lm
编译器报如下错误:
In file included from lbm.cu:15:
lbm_kernel.h:52:8: warning: extra tokens at end of #endif directive
/usr/local/NVIDIA_GPU_Computing_SDK/CUDALibraries/common/inc/cutil_inline_runtime.h(329): error: identifier "CURAND_STATUS_DOUBLE_PRECISION_REQUIRED" is undefined
1 error detected in the compilation of "/tmp/tmpxft_00005ff8_00000000-4_lbm.cpp1.ii".
这就是全部内容。 在我编译其他代码的过程中,我从来没有见过它。我能做什么?
【问题讨论】:
-
我确信“它”的含义远不止于此。您能否编辑您的问题并添加您使用的编译命令和编译器的完整输出。就目前而言,这些信息不足以帮助您。
-
我已经完成了命令和输出。
-
@WaisFan 可以看看内核的代码吗?
-
kenel 文件的最后三行:" device int ind(int x, int y, int z, int k, int4 dim); device int ind(int x, int y, int dim_x); #endif _LBM_KERNEL_H"
标签: cuda