cuda 5.0支持的c++版本
c++ version supported by cuda 5.0
我找不到CUDA 5.0支持c++的哪个版本/哪些概念。我在CUDA 5.0 RC附带的《编程指南》或《参考指南》中找不到任何信息。特别是我想知道CUDA 5.0是否支持C++11。有人能给我指个地方找这些信息吗?
很明显,5.0 RC中没有C++11功能。nvcc仍然不理解gcc 4.6的标准includes中使用的C++11语法(请参阅使用CUDA和C++11时的错误):
$nvcc--版本
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2012 NVIDIA Corporation
Built on Tue_Jul_31_17:46:14_PDT_2012
Cuda compilation tools, release 5.0, V0.2.1221
$cat test.cu
int main()
{
}
$nvcc-Xcompiler"-std=c++0x"test.cu
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h(159): error: identifier "nullptr" is undefined
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h(159): error: expected a ";"
/usr/include/c++/4.6/bits/exception_ptr.h(93): error: incomplete type is not allowed
发行说明包含一个支持平台列表,包括支持哪些版本的GCC,5.0候选发行说明显示,某些发行版支持的最新GCC为4.6(其他发行版支持旧版本)。
一旦您知道支持哪种GCC版本,请与GCC C++0x/C++11功能列表进行比较。
它不支持gcc 4.7,因此一些c++11功能不可用:
- Non-static data member initializers
- Template aliases :(
- Delegating constructors
- User-defined literals
- Extended friend declarations
- Explicit virtual overrides
如果您正在询问Cuda/C++或THRUST库。推力库在容器、迭代器和算法方面与stl c++非常相似,但它不是c++11。
nvcc编译gpu代码。nvcc支持(Cuda C和Cuda C++/推力)gcc编译cpu代码。gcc(支持C和C++)。
相关文章:
- 为cl.exe(Visual Studio代码)指定命令行C++版本
- 导入库可以跨dll版本工作吗
- 在调用FreeLibrary后,释放动态链接到具有相同版本的CRT堆的DLL的内存
- 在clang++预处理器中确定gcc工具链版本
- 码头化的C++应用程序是否向后兼容早期的内核版本
- 不同的Visual Studio版本中缺少.dll
- 用符号版本替换对函数的所有调用
- luaL_dofile在已知良好的字节码上失败,可以使用未编译的版本
- 正在解码MSVC 32位版本的程序集(作业).没有手术做什么
- 我需要分发哪些版本的可再分发文件
- CV_OCL_RUN宏如何在OpenCV(版本3.4.5)的goodFeaturesToTrack实现中工作?
- 在运行时读取 libstdc++ 版本
- 如何声明一个可以在整个程序中使用的全局 2d 3d 4d .. 数组(堆版本)变量?
- FindPackageHandleStandardArgs.cmake:137 的 CMake 错误(消息):找不到 Boost (缺少:正则表达式)(找到合适的版本"1.72.0",
- Vulkan SDK 版本 1.1.85.0 在 Kubuntu 18.10 上链接
- 如何正确实现与基类不同的版本?
- 从预处理器获取 Windows 版本(C++ Win32)
- 表达式 SFINAE:如何根据类型是否包含具有一个或多个参数的函数来选择模板版本
- 如何在C++中将 Python 字符串转换为其转义版本?
- Qt版本应该在其他计算机上运行吗?