【问题标题】:CUDA 7.0 complains about not supporting gcc 4.9CUDA 7.0 抱怨不支持 gcc 4.9
【发布时间】:2016-08-25 06:01:29
【问题描述】:

我已经安装了gcc-4.7、gcc-4.8、gcc-4.9

当我尝试这样做时:

luarocks install cutorch

我收到一个错误:

In file included from /usr/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!

我找到了similar problem

但是当我尝试运行命令时:

nvcc --compiler-bindir /usr/bin/gcc-4.7

我收到一个错误:

nvcc fatal: No input files specified; use option --help for more information

我是新来的,一天前安装了 linux。请帮帮我

【问题讨论】:

    标签: c++ linux gcc cuda compatibility


    【解决方案1】:

    安装前运行以下命令:

    export CXX=/usr/bin/g++-4.8
    export CC=/usr/bin/gcc-4.8
    

    这应该将编译器设置为 gcc-4.8 以进行编译。

    【讨论】:

      猜你喜欢
      • 2015-03-16
      • 1970-01-01
      • 2019-07-01
      • 2021-06-20
      • 2016-04-26
      • 1970-01-01
      • 2016-02-27
      • 1970-01-01
      • 2015-01-19
      相关资源
      最近更新 更多