我正在尝试从Rust调用CUDA C库。我正在使用cc crate。我得到以下构建错误: The following warnings were emitted during compilation:
warning: /usr/include/c++/11.1.0/bits/stl_pair.h(460): error: argument list for class template "std::pair" is miss
Check for working CUDA compiler: /gpfs/share/software/cuda/cuda-8.0/bin/nvcc
-- Check for working CUDAcompiler: /gpfs/share/software/cuda/cuda-8.0/bin/nvcc --
我花了很多时间在运行Ubuntu Linux (11.04)的机器上设置CUDA工具链。该平台有两个NVIDIA Tesla GPU,我能够编译和运行NVIDIA GPU Computing SDK中的测试程序,如deviceQuery、deviceQueryDrv和bandwidthTest我知道你应该用NVCC编译,但我每次使用它都会遇到编译错误。基本上,涉及CUDA库的任何类型的include语句都会给出缺少文件/库的错误。下面是一个例
在使用-std=c++11标志编译CUDA代码时,我收到了一个错误。overloaded function "isnan" matches the argument list: function "stdtypes are: (r32)我找到了,其中的答案建议不指定C++11来解决问题,但我不能这样做,因为我使用的是C++11的一些特性,比如const