java 10.9 mac_nvcc在mac osx 10.9不支持的选项上

当我尝试编译包含简单Hello World的任何.cu文件时,我在命令行上收到此错误:

Agustin$ nvcc -o hello_world hello_world.cu

clang: error: unsupported option '-dumpspecs'

clang: error: no input files

我正在运行OSX Mavericks 10.9

这是Cuda版本:

nvcc: NVIDIA (R) Cuda compiler driver

Copyright (c) 2005-2013 NVIDIA Corporation

Built on Wed_Jul_10_11:16:01_PDT_2013

Cuda compilation tools, release 5.5, V5.5.0

还在互联网上阅读,如果我像这样删除文件:

nvcc -o hello_world hello_world.cu -ccbin /usr/bin/clang

我收到以下错误

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c / v1 / _config(191):错误:标识符“_char16_t”未定义/Applications/Xcode.app /Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c / v1 / _config(192):错误:标识符“_char32_t”未定义/Applications/Xcode.app/Contents/Developer/Toolchains/ XcodeDefault.xctoolchain / usr / bin /../ lib / c / v1 / __ config(303):错误:预期标识符/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ .. / lib / c / v1 / __ config(303):错误:仅在函数声明上允许使用内联说明符/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c / v1 / __ config(304):错误:预期表达式/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c / v1 / __ config(305):错误:预期a “;” ..............还有更多类似的错误打印输出

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值