vs2013+GTX1070+cuda8.0+cudnn_v5.1配置
来源:互联网 发布:香掌柜沉香淘宝 编辑:程序博客网 时间:2024/06/02 04:18
参考链接:
1. http://www.cnblogs.com/hzm12/p/6422701.html
2. http://blog.csdn.net/tina_ttl/article/details/51722983 windows7+visual studio 2013+CUDA7.5 编译caffe+配置matcaffe+配置pycaffe
下载微软版caffe: https://github.com/Microsoft/caffe
cudnn v5.1 链接:http://pan.baidu.com/s/1i4Xs5Tj 密码:bur8
问题解决:
1.错误 232 error C1083: 无法打开包括文件: “gpu/mxGPUArray.h”: No such file or directory
解决办法:http://blog.csdn.net/qq_27278153/article/details/53667756
- 要把
1. cuda 驱动路径 如: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include
2. D:\caffe-windows\caffe-master\include(解决找不到caffe.hpp)
3. c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include(解决找不到sstream,原因很可能是因为我装了vs2013后又装了vs2015,造成的问题)
加到matcaffe的包含目录中
注意:
1. !– CuDNN 4 and 5 are supported –
2. <*CuDnnPath>D:\caffe-master\cudnn-8.0-windows7-x64-v5.1</CuDnnPath>*
<?xml version="1.0" encoding="utf-8"?><Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ImportGroup Label="PropertySheets" /> <PropertyGroup Label="UserMacros"> <BuildDir>$(SolutionDir)..\Build</BuildDir> <!--NOTE: CpuOnlyBuild and UseCuDNN flags can't be set at the same time.--> <CpuOnlyBuild>false</CpuOnlyBuild> <UseCuDNN>true</UseCuDNN> <CudaVersion>8.0</CudaVersion> <!-- NOTE: If Python support is enabled, PythonDir (below) needs to be set to the root of your Python installation. If your Python installation does not contain debug libraries, debug build will not work. --> <PythonSupport>true</PythonSupport> <!-- NOTE: If Matlab support is enabled, MatlabDir (below) needs to be set to the root of your Matlab installation. --> <MatlabSupport>true</MatlabSupport> <CudaDependencies></CudaDependencies> <!-- Set CUDA architecture suitable for your GPU. Setting proper architecture is important to mimize your run and compile time. --> <CudaArchitecture>compute_35,sm_35;compute_52,sm_52</CudaArchitecture> <!-- CuDNN 4 and 5 are supported --> <CuDnnPath>D:\caffe-master\cudnn-8.0-windows7-x64-v5.1</CuDnnPath> <ScriptsDir>$(SolutionDir)\scripts</ScriptsDir> </PropertyGroup> <PropertyGroup Condition="'$(CpuOnlyBuild)'=='false'"> <CudaDependencies>cublas.lib;cuda.lib;curand.lib;cudart.lib</CudaDependencies> </PropertyGroup> <PropertyGroup Condition="'$(UseCuDNN)'=='true'"> <CudaDependencies>cudnn.lib;$(CudaDependencies)</CudaDependencies> </PropertyGroup> <PropertyGroup Condition="'$(UseCuDNN)'=='true' And $(CuDnnPath)!=''"> <LibraryPath>$(CuDnnPath)\cuda\lib\x64;$(LibraryPath)</LibraryPath> <IncludePath>$(CuDnnPath)\cuda\include;$(IncludePath)</IncludePath> </PropertyGroup> <PropertyGroup> <OutDir>$(BuildDir)\$(Platform)\$(Configuration)\</OutDir> <IntDir>$(BuildDir)\Int\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir> </PropertyGroup> <PropertyGroup> <LibraryPath>$(OutDir);$(CUDA_PATH)\lib\$(Platform);$(LibraryPath)</LibraryPath> <IncludePath>$(SolutionDir)..\include;$(SolutionDir)..\include\caffe\proto;$(CUDA_PATH)\include;$(IncludePath)</IncludePath> </PropertyGroup> <PropertyGroup Condition="'$(PythonSupport)'=='true'"> <PythonDir>C:\Program Files\Anaconda3\envs\py2</PythonDir> <LibraryPath>$(PythonDir)\libs;$(LibraryPath)</LibraryPath> <IncludePath>$(PythonDir)\include;$(IncludePath)</IncludePath> </PropertyGroup> <PropertyGroup Condition="'$(MatlabSupport)'=='true'"> <MatlabDir>C:\Program Files\MATLAB\R2014a</MatlabDir> <LibraryPath>$(MatlabDir)\extern\lib\win64\microsoft;$(LibraryPath)</LibraryPath> <IncludePath>$(MatlabDir)\extern\include;$(IncludePath)</IncludePath> </PropertyGroup> <ItemDefinitionGroup Condition="'$(CpuOnlyBuild)'=='true'"> <ClCompile> <PreprocessorDefinitions>CPU_ONLY;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(UseCuDNN)'=='true'"> <ClCompile> <PreprocessorDefinitions>USE_CUDNN;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> <CudaCompile> <Defines>USE_CUDNN</Defines> </CudaCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(PythonSupport)'=='true'"> <ClCompile> <PreprocessorDefinitions>WITH_PYTHON_LAYER;BOOST_PYTHON_STATIC_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(MatlabSupport)'=='true'"> <ClCompile> <PreprocessorDefinitions>MATLAB_MEX_FILE;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> </ItemDefinitionGroup> <ItemDefinitionGroup> <ClCompile> <MinimalRebuild>false</MinimalRebuild> <MultiProcessorCompilation>true</MultiProcessorCompilation> <PreprocessorDefinitions>_SCL_SECURE_NO_WARNINGS;USE_OPENCV;USE_LEVELDB;USE_LMDB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <TreatWarningAsError>true</TreatWarningAsError> </ClCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ClCompile> <Optimization>Full</Optimization> <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> <FunctionLevelLinking>true</FunctionLevelLinking> </ClCompile> <Link> <EnableCOMDATFolding>true</EnableCOMDATFolding> <GenerateDebugInformation>true</GenerateDebugInformation> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <OptimizeReferences>true</OptimizeReferences> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <ClCompile> <Optimization>Disabled</Optimization> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> </Link> </ItemDefinitionGroup></Project>
阅读全文
0 0
- vs2013+GTX1070+cuda8.0+cudnn_v5.1配置
- Ubuntu16.04+GTX1070+cuda8.0+cudnn5.1配置faster-rcnn的方法
- Ubuntu16.04+GTX1070显卡驱动+cuda8.0+cudnn5.1+tensorflow-gpu环境配置
- Ubuntu14.04 + GTX1070 + Cuda8.0 + TensorFlow安装配置
- Theano+cuda8.0+vs2013配置
- 图文:配置CUDA8.0 + VS2013
- caffe+ubuntu14.04+GTX1070+CUDA8.0+CUDNNv5.1
- Ubuntu16.04+GTX1070+CUDA8.0+Caffe
- caffe cuda8.0 GTX1070安装问题总结
- win10+vs2013+GTX 1070 配置cuda8.0
- Win7x64+cuda8.0+ caffe VS2013配置记录
- CUDA8.0+VS2013的安装和配置
- CUDA8.0安装配置 for VS2013
- Win7x64+cuda8.0+ Dragon VS2013配置记录
- Ubuntu 17.10 一步安装NVIDIA驱动 + CUDA8.0 在GTX1070笔记本上配置深度学习环境
- ubuntu14.04+caffe+cuda8.0+cudnn-8.0-v5.1(gtx1070)安装与测试
- Ubuntu16.04+GTX1070+python3.6+anaconda3+CUDA8.0+cudnn5.1+opencv3.2.0+TensorFlow1.2.1(GPU)
- Ubuntu14.04+cuda8.06+cudnn5.1+gtx1070的GPU环境配置中遇到的错误修改参考
- jQuery实现发送短信验证码后60秒倒计时
- C语言实现单链表面试题(基础篇)
- Kali 2017.1 安装完成后的一些工作
- 常见的HTTP状态码
- Maven问题集锦1
- vs2013+GTX1070+cuda8.0+cudnn_v5.1配置
- maven的聚合和继承
- spring + redis + org.springframework.beans.factory.UnsatisfiedDependencyException:
- hbase的常用shell操作
- Python 函数中,参数是传值,还是传引用?
- XP系统还不过时 教你完美征服3TB硬盘
- Linux学习笔记三
- zoj 3747 Attack on Titans 递推 计数dp
- WINDOWS是如何在注册表里记录盘符分配的