Guest User

Untitled

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