Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

set vulkanImageCUDA env #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions Samples/vulkanImageCUDA/vulkanImageCUDA_vs2019.vcxproj
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<IntDir>$(Platform)/$(Configuration)/</IntDir>
<IncludePath>$(IncludePath)</IncludePath>
<IncludePath>$(IncludePath);C:\VulkanSDK\1.3.275.0\Include;C:\projC\cuda\glfw-3.3.9.bin.WIN64\include;</IncludePath>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRules />
<CodeAnalysisRuleAssemblies />
@@ -59,7 +59,7 @@
<Link>
<SubSystem>Console</SubSystem>
<AdditionalDependencies>cudart_static.lib;vulkan-1.lib;glfw3dll.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(CudaToolkitLibDir);../../common/lib/$(PlatformName);$(VULKAN_SDK)/Lib;</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>$(CudaToolkitLibDir);../../common/lib/$(PlatformName);$(VULKAN_SDK)/Lib;C:\VulkanSDK\1.3.275.0\Lib;C:\projC\cuda\glfw-3.3.9.bin.WIN64\lib-vc2019;</AdditionalLibraryDirectories>
<OutputFile>$(OutDir)/vulkanImageCUDA.exe</OutputFile>
</Link>
<CudaCompile>
@@ -97,22 +97,14 @@
<TargetMachinePlatform>64</TargetMachinePlatform>
</CudaCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
<Link>

</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
<Link>

</Link>
</ItemDefinitionGroup>
<ItemGroup>
<CudaCompile Include="vulkanImageCUDA.cu" />
<CudaCompile Include="vulkanImageCUDA.cu">
<FileType>Document</FileType>
</CudaCompile>
<ClInclude Include="linmath.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(CUDAPropsPath)\CUDA 10.2.targets" />
</ImportGroup>
</Project>
</Project>
7 changes: 7 additions & 0 deletions launch_x64_vs2019.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rem call "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars64.bat"
rem call "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe" /useenv %~dp0\Samples\vectorAdd_nvrtc\vectorAdd_nvrtc_vs2019.sln


call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe" /useenv %~dp0\Samples\vectorAdd_nvrtc\vectorAdd_nvrtc_vs2019.sln

2 changes: 2 additions & 0 deletions launch_x64_vs2019_vulkan.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe" /useenv %~dp0\Samples\vulkanImageCUDA\vulkanImageCUDA_vs2019.sln