thecomputekid / premake5-cuda Goto Github PK
View Code? Open in Web Editor NEWPremake5 module that enables CUDA development in Visual Studio using the native CUDA Toolkit integration.
License: MIT License
Premake5 module that enables CUDA development in Visual Studio using the native CUDA Toolkit integration.
License: MIT License
Howdy,
Thanks very much for taking the time to do this project!
Your example project works fine here. But my usual MO is to make a single premake5.lua to hold the solution setting and add separate project folders, each with it's own settings stored in a premake5.lua file and "include" them in the solution premake5 file.
Here's a simple example using your own Example project. If you run "generateVS2019.bat", you'll see that the *.cu files are not added to the Example project. The solution and projects live in the "build" folder
Is that just a limitation or is it something that can be fixed. Thanks!
Sorry to bother you again! I use NVIDIA OptiX in my projects and it needs to create .ptx files from .cu files. Below is the relevant vs2019 project settings. I've gotten just about everything working by adding the necessary additions to the "cuda-exported-variables" file. But I can't figure out how create "CompileOut" setting so that a different .ptx file will be saved for each .cu file. Could you tell me how I might do this? Thanks!
<ItemGroup>
<CudaCompile Include="deform.cu" />
<CudaCompile Include="optix_kernels.cu">
<GPUDebugInfo Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</GPUDebugInfo>
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">compute_75,sm_75</CodeGeneration>
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Release|x64'">compute_75,sm_75</CodeGeneration>
</CudaCompile>
</ItemGroup>
<CudaCompile>
<GenerateRelocatableDeviceCode>true</GenerateRelocatableDeviceCode>
</CudaCompile>
<CudaCompile>
<NvccCompilation>ptx</NvccCompilation>
</CudaCompile>
<CudaCompile>
<TargetMachinePlatform>64</TargetMachinePlatform>
<CudaRuntime>Shared</CudaRuntime>
<CompileOut>$(SolutionDir)$(Platform)\$(Configuration)\$(TargetName)\ptxes\%(Filename).ptx</CompileOut>
<AdditionalOptions>-std=c++17 --use_fast_math -Xcompiler "/wd 4819" -D_DEBUG %(AdditionalOptions)</AdditionalOptions>
<FastMath>true</FastMath>
<GenerateLineInfo>true</GenerateLineInfo>
</CudaCompile>
<CudaLink>
<PerformDeviceLink>false</PerformDeviceLink>
</CudaLink>
When you have cudaFile with relative path sometimes the module failed to load them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.