Skip to content

Commit 7358048

Browse files
committed
✨ Update premake with new module CUDA
1 parent a6e3faf commit 7358048

File tree

5 files changed

+5
-265
lines changed

5 files changed

+5
-265
lines changed

Plugin/premake5-cuda/cuda-exported-variables.lua

Lines changed: 0 additions & 55 deletions
This file was deleted.

Plugin/premake5-cuda/premake5-cuda-linux.lua

Lines changed: 0 additions & 110 deletions
This file was deleted.

Plugin/premake5-cuda/premake5-cuda-vs.lua

Lines changed: 0 additions & 87 deletions
This file was deleted.

Plugin/premake5-cuda/premake5-cuda.lua

Lines changed: 0 additions & 2 deletions
This file was deleted.

Plugin/premake5.lua

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,10 @@ project "PluginInteropUnityCUDA"
116116
-- This assumes you have installed Visual Studio integration for CUDA
117117
-- Here we have it set to 11.4
118118
buildcustomizations "BuildCustomizations/CUDA 12.1"
119-
cudaPath "/usr/local/cuda" -- Only affects linux, because the windows builds get CUDA from the VS extension
119+
-- cudaPath "/usr/local/cuda" -- Only affects linux, because the windows builds get CUDA from the VS extension
120120

121121
-- CUDA specific properties
122-
cudaFiles
123-
{
124-
SourceDir .. "**.cu"
125-
}
122+
cudaFiles {SourceDir .. "**.cu"}
126123
cudaMaxRegCount "32"
127124

128125
-- Let's compile for all supported architectures (and also in parallel with -t0)
@@ -204,13 +201,10 @@ project "SampleBasic"
204201
-- This assumes you have installed Visual Studio integration for CUDA
205202
-- Here we have it set to 11.4
206203
buildcustomizations "BuildCustomizations/CUDA 12.1"
207-
cudaPath "/usr/local/cuda" -- Only affects linux, because the windows builds get CUDA from the VS extension
204+
-- cudaPath "/usr/local/cuda" -- Only affects linux, because the windows builds get CUDA from the VS extension
208205

209206
-- CUDA specific properties
210-
cudaFiles
211-
{
212-
SourceDir .. "**.cu"
213-
}
207+
cudaFiles {SourceDir .. "**.cu"}
214208
cudaMaxRegCount "32"
215209

216210
-- Let's compile for all supported architectures (and also in parallel with -t0)
@@ -266,7 +260,7 @@ project "Utilities"
266260
-- This assumes you have installed Visual Studio integration for CUDA
267261
-- Here we have it set to 11.4
268262
buildcustomizations "BuildCustomizations/CUDA 12.1"
269-
cudaPath "/usr/local/cuda" -- Only affects linux, because the windows builds get CUDA from the VS extension
263+
-- cudaPath "/usr/local/cuda" -- Only affects linux, because the windows builds get CUDA from the VS extension
270264

271265
cudaMaxRegCount "32"
272266
-- Let's compile for all supported architectures (and also in parallel with -t0)

0 commit comments

Comments
 (0)