CUDA Toolkit 5.0在Mac OS X ML上的NSight构建错误

编程入门 行业动态 更新时间:2024-10-08 13:30:08
本文介绍了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构建错误

本文发布于:2023-06-02 01:04:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/431005.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Toolkit   CUDA   Mac   NSight

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!