CUDA Toolkit 5.0在Mac OS X ML上的NSight构建错误 [英] CUDA Toolkit 5.0 NSight build errors on Mac OS X ML

查看:331
本文介绍了CUDA Toolkit 5.0在Mac OS X ML上的NSight构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的事情发生在我的CUDA工具包5.0。
几天前,XCode和NSight Eclipse插件失去构建更简单的CUDA相关项目的能力。 XCode使用自定义构建规则为C ++源文件成功构建项目:

  nvccINPUT_FILE_NAME
 错误:可执行文件不存在:'/ Users / geraldus / Library / Developer / Xcode / DerivedData / CUDA_Hello_World-gzfzqivvsmeamfghnovopxapkdsz / Build / Products / Debug / CUDA Hello World'
错误: geraldus / Library / Developer / Xcode / DerivedData / CUDA_Hello_World-gzfzqivvsmeamfghnovopxapkdsz / Build / Products / Debug / CUDA Hello World' - SBTarget is invaliderror:failed to launch'/ Users / geraldus / Library / Developer / Xcode / DerivedData / CUDA_Hello_World-gzfzqivvsmeamfghnovopxapkdsz / Build / Products / Debug / CUDA Hello World' - SBTarget无效

显示.o文件丢失。

  ****项目配置发布项目简单CUDA RT **** 

make all
构建文件:../src/Simple CUDA RT.cu
调用:NVCC编译器
nvcc -O3 -gencode arch = compute_20,code = sm_20 -gencode arch = compute_35,code = sm_35 -odirsrc-M -osrc / Simple CUDA RT.d../src/Simple CUDA RT.cu
nvcc -O3src / Simple CUDA RT.o../src/Simple CUDA RT.cu
i686-apple-darwin11-llvm-g ++ - 4.2:src / Simple CUDA RT.o:没有这样的文件或目录
make:*** [src / Simple CUDA RT.o]错误1

****构建完成****

如何解决?



UPDATE [10:03 UTC 6 NOV 2012]



我试图以这种方式重建CUDA示例:

  cd /Developer/NVIDIA/CUDA-5.0 / samples 
make clean
make

一切都没有错误,二进制成功生成和他们工作。但仍然与XCode和Eclipse相同的情况(甚至在重新安装Eclipse和CUDA工具包后)

解决方案

这看起来像一个权限问题。验证目前使用者是否可以建立建立资料夹(及其中的所有档案)。



更新
Nsight EE的问题是文件名中的空格。


I have strange thing happened to my CUDA Toolkit 5.0. Few days ago both XCode and NSight Eclipse plugin lost ability to build even simplest CUDA related projects. XCode successfully building projects with custom build rule for C++ source files:

    nvcc "INPUT_FILE_NAME"

But console output shows that run failed

    error: executable doesn't exist: '/Users/geraldus/Library/Developer/Xcode/DerivedData/CUDA_Hello_World-gzfzqivvsmeamfghnovopxapkdsz/Build/Products/Debug/CUDA Hello World'
    error: failed to launch '/Users/geraldus/Library/Developer/Xcode/DerivedData/CUDA_Hello_World-gzfzqivvsmeamfghnovopxapkdsz/Build/Products/Debug/CUDA Hello World' -- SBTarget is invaliderror: failed to launch '/Users/geraldus/Library/Developer/Xcode/DerivedData/CUDA_Hello_World-gzfzqivvsmeamfghnovopxapkdsz/Build/Products/Debug/CUDA Hello World' -- SBTarget is invalid

And Eclipse NSight output always shows that .o file is missing.

    **** Build of configuration Release for project Simple CUDA RT ****

    make all 
    Building file: ../src/Simple CUDA RT.cu
    Invoking: NVCC Compiler
    nvcc -O3 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_35,code=sm_35 -odir "src" -M -o "src/Simple CUDA RT.d" "../src/Simple CUDA RT.cu"
    nvcc -O3   "src/Simple CUDA RT.o" "../src/Simple CUDA RT.cu"
    i686-apple-darwin11-llvm-g++-4.2: src/Simple CUDA RT.o: No such file or directory
    make: *** [src/Simple CUDA RT.o] Error 1

    **** Build Finished ****

How can I fix it? Is it a bug or my incorrect actions?

UPDATE [10:03 UTC 6 NOV 2012]

I've tried to rebuild CUDA samples this way:

    cd /Developer/NVIDIA/CUDA-5.0/samples
    make clean
    make

Everything was built without errors, binaries were successfully generated and they works. But still the same situation with XCode and Eclipse (even after reinstalling Eclipse and CUDA Toolkit)

解决方案

This looks like a permissions issue. Verify the build folder (and all the files in it) are writable by the current user.

Update Turns out the actual problem with Nsight EE was spaces in the file name.

这篇关于CUDA Toolkit 5.0在Mac OS X ML上的NSight构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆