Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ImportGroup Label="PropertySheets" />
  4. <PropertyGroup Label="UserMacros">
  5. <BuildDir>$(SolutionDir)..\Build</BuildDir>
  6. <!--NOTE: CpuOnlyBuild and UseCuDNN flags can't be set at the same time.-->
  7. <CpuOnlyBuild>false</CpuOnlyBuild>
  8. <UseCuDNN>true</UseCuDNN>
  9. <CudaVersion>8.0</CudaVersion>
  10. <!-- NOTE: If Python support is enabled, PythonDir (below) needs to be
  11. set to the root of your Python installation. If your Python installation
  12. does not contain debug libraries, debug build will not work. -->
  13. <PythonSupport>true</PythonSupport>
  14. <!-- NOTE: If Matlab support is enabled, MatlabDir (below) needs to be
  15. set to the root of your Matlab installation. -->
  16. <MatlabSupport>false</MatlabSupport>
  17. <CudaDependencies></CudaDependencies>
  18.  
  19. <!-- Set CUDA architecture suitable for your GPU.
  20. Setting proper architecture is important to mimize your run and compile time. -->
  21. <CudaArchitecture>compute_61,sm_61;</CudaArchitecture>
  22.  
  23. <!-- CuDNN 3 and 4 are supported -->
  24. <CuDnnPath>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\</CuDnnPath>
  25. <ScriptsDir>$(SolutionDir)\scripts</ScriptsDir>
  26. </PropertyGroup>
  27. <PropertyGroup Condition="'$(CpuOnlyBuild)'=='false'">
  28. <CudaDependencies>cublas.lib;cuda.lib;curand.lib;cudart.lib</CudaDependencies>
  29. </PropertyGroup>
  30.  
  31. <PropertyGroup Condition="'$(UseCuDNN)'=='true'">
  32. <CudaDependencies>cudnn.lib;$(CudaDependencies)</CudaDependencies>
  33. </PropertyGroup>
  34. <PropertyGroup Condition="'$(UseCuDNN)'=='true' And $(CuDnnPath)!=''">
  35. <LibraryPath>$(CuDnnPath)\cuda\lib\x64;$(LibraryPath)</LibraryPath>
  36. <IncludePath>$(CuDnnPath)\cuda\include;$(IncludePath)</IncludePath>
  37. </PropertyGroup>
  38.  
  39. <PropertyGroup>
  40. <OutDir>$(BuildDir)\$(Platform)\$(Configuration)\</OutDir>
  41. <IntDir>$(BuildDir)\Int\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
  42. </PropertyGroup>
  43. <PropertyGroup>
  44. <LibraryPath>$(OutDir);$(CUDA_PATH)\lib\$(Platform);$(LibraryPath)</LibraryPath>
  45. <IncludePath>$(SolutionDir)..\include;$(SolutionDir)..\include\caffe\proto;$(CUDA_PATH)\include;$(IncludePath)</IncludePath>
  46. </PropertyGroup>
  47. <PropertyGroup Condition="'$(PythonSupport)'=='true'">
  48. <PythonDir>C:\Anaconda2</PythonDir>
  49. <LibraryPath>$(PythonDir)\libs;$(LibraryPath)</LibraryPath>
  50. <IncludePath>$(PythonDir)\include;$(IncludePath)</IncludePath>
  51. </PropertyGroup>
  52. <PropertyGroup Condition="'$(MatlabSupport)'=='true'">
  53. <MatlabDir>M:\Apps_Installation_Folder\MATLAB\R2014b</MatlabDir>
  54. <LibraryPath>$(MatlabDir)\extern\lib\win64\microsoft;$(LibraryPath)</LibraryPath>
  55. <IncludePath>$(MatlabDir)\extern\include;$(IncludePath)</IncludePath>
  56. </PropertyGroup>
  57. <ItemDefinitionGroup Condition="'$(CpuOnlyBuild)'=='true'">
  58. <ClCompile>
  59. <PreprocessorDefinitions>CPU_ONLY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  60. </ClCompile>
  61. </ItemDefinitionGroup>
  62. <ItemDefinitionGroup Condition="'$(UseCuDNN)'=='true'">
  63. <ClCompile>
  64. <PreprocessorDefinitions>USE_CUDNN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  65. </ClCompile>
  66. <CudaCompile>
  67. <Defines>USE_CUDNN</Defines>
  68. </CudaCompile>
  69. </ItemDefinitionGroup>
  70. <ItemDefinitionGroup Condition="'$(PythonSupport)'=='true'">
  71. <ClCompile>
  72. <PreprocessorDefinitions>WITH_PYTHON_LAYER;BOOST_PYTHON_STATIC_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  73. </ClCompile>
  74. </ItemDefinitionGroup>
  75. <ItemDefinitionGroup Condition="'$(MatlabSupport)'=='true'">
  76. <ClCompile>
  77. <PreprocessorDefinitions>MATLAB_MEX_FILE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  78. </ClCompile>
  79. </ItemDefinitionGroup>
  80. <ItemDefinitionGroup>
  81. <ClCompile>
  82. <MinimalRebuild>false</MinimalRebuild>
  83. <MultiProcessorCompilation>true</MultiProcessorCompilation>
  84. <PreprocessorDefinitions>_SCL_SECURE_NO_WARNINGS;USE_OPENCV;USE_LEVELDB;USE_LMDB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  85. <TreatWarningAsError>true</TreatWarningAsError>
  86. </ClCompile>
  87. </ItemDefinitionGroup>
  88. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  89. <ClCompile>
  90. <Optimization>Full</Optimization>
  91. <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  92. <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
  93. <FunctionLevelLinking>true</FunctionLevelLinking>
  94. </ClCompile>
  95. <Link>
  96. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  97. <GenerateDebugInformation>true</GenerateDebugInformation>
  98. <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
  99. <OptimizeReferences>true</OptimizeReferences>
  100. </Link>
  101. </ItemDefinitionGroup>
  102. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  103. <ClCompile>
  104. <Optimization>Disabled</Optimization>
  105. <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  106. <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
  107. </ClCompile>
  108. <Link>
  109. <GenerateDebugInformation>true</GenerateDebugInformation>
  110. </Link>
  111. </ItemDefinitionGroup>
  112. </Project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement