ould not set up the env for vs using 'C:/Program Files (x86)/../vcvars32.bat
来源:互联网 发布:淘宝上便宜的零食店 编辑:程序博客网 时间:2024/06/05 03:12
抱歉,因为题目长度的问题,所以只能进行缩写了。
在笔者进行PCL环境编译的时候,发现报错:nvcc fatal : Could not set up the environment for Microsoft Visual Studio using 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/../../VC/bin/vcvars32.bat'
这个错误导致了后面的程序不能正常运行错误分析,cuda自己带的sample程序可以正常进行运行
所以sdk不可能有问题,sdk现在的路径选择是在C:\ProgramData\NVIDIA Corporation\CUDA Samples\v7.5
但是怀疑是不是应该在C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5/bin下面
现在的怀疑点:第一是没有足够的权限,第二是没有安装成功cuda(当时的选择是精简安装),第三,配置问题???
然后给vs2010以管理员权限,然后发现还是不行的
重装了cuda还是出现一样的错误,nvcc fatal,这次重装之前删除了所有的注册表,所以可以排除是因为之前的残留导致的
nvcc安装失败的问题,所以怀疑两个原因,首先就是nvcc对于win或者是vs的版本兼容性问题,另外就是vs配置问题
第二天上午,发现还是依赖库的问题导致nvcc没有正常的运行,在自己的cmd可以通过检测 nvcc -V来判断nvcc是不是正常
经检测无误,出现的字符是版本信息,当然也可以通过nvcc -h来寻求帮助菜单
于是问题既然比较明朗了,那应该就是VS的问题了,所以那就来看吧,所幸的是找到了这篇博客,http://blog.csdn.net/u011821462/article/details/50145221,按照里面的方法对vs进行了配置,自己编写的程序就可以正确的运行了。(我的是vs2010,所以版本应该不是问题)
阅读全文
0 0
- ould not set up the env for vs using 'C:/Program Files (x86)/../vcvars32.bat
- Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre7"
- Collect preferences failed, class java/lang/AutoCloseable not found in C:\Program Files (x86)\Androi
- Collect preferences failed, class java/lang/AutoCloseable not found in C:\Program Files (x86)\Androi
- C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\rc.exe not found
- Collect preferences failed, class java/lang/AutoCloseable not found in C:\Program Files (x86)\Andro
- [已解决]sourcetree warning: templates not found C:\Program Files (x86)\Git\share\git-core\templates
- could not open `C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\i386\jvm.cfg
- Failed to load the JNI shared library "C:\Program Files(X86)\Java\jdk1.8.0_45\bin\.....
- set-env.bat
- Program Files(x86)探索
- 王立平--Program Files (x86)
- program files(x86)与program files
- 64位机器的C:\Program Files (x86)和C:\Program Files 文件夹有什么区别?
- URL not found: C:\Program Files (x86)\Android\android-sdk\temp\sources-15_r02.zip (拒绝访问。)
- GNS3连接VMware出现error could not execute vmrun:Command "C:\\program files (x86)\\vmwork\\vmrun.exe,'-T'
- 未能加载文件或程序集“file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0
- 未能加载文件或程序集“file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0
- JavaWeb笔记之快速了解Filter过滤器
- JavaScript学习笔记整理(二)
- Spark性能调优
- Cookie和Session
- 通过DOS头判断一个文件是否为PE文件
- ould not set up the env for vs using 'C:/Program Files (x86)/../vcvars32.bat
- JavaScript学习笔记整理(三)
- k-Means算法,聚类算法
- 计算机视觉领域的一些牛人博客,研究机构等的网站链接
- Oracle 11g表空间dbf文件迁移
- 源码方式安装最新版本snmp的过程
- MySql ORDER BY 索引优化
- 计算机专业中经典书籍(程序猿和大学生必读)
- day2_数据运算和类型、列表、元组、字典