File tree 5 files changed +558
-414
lines changed
5 files changed +558
-414
lines changed Original file line number Diff line number Diff line change 1
1
# minimal_cuda
2
- A minimal example of compiling nVidia CUDA device code with SConstruct
3
-
4
- <sup ><sub >initial scons implementation based on [ cuda-scons] ( https://github.com/bryancatanzaro/cuda-scons ) </sub ></sup >
2
+ A minimal example of compiling nvidia CUDA code with SConstruct
Original file line number Diff line number Diff line change 1
1
Import ('env' )
2
2
3
- env .Append (LIBPATH = '#/lib' )
4
- env .Append (RPATH = [Literal ('\\ $$ORIGIN' )])
5
- env .Append (RPATH = [Literal ('\\ $$ORIGIN/../lib' )])
6
-
7
- libmixed_cpu_and_gpu = env .SConscript ('libmixed_cpu_and_gpu/SConscript' , exports = 'env' )
8
- env .Append (LIBPATH = [libmixed_cpu_and_gpu [0 ].dir ])
9
- env .Append (LIBS = [libmixed_cpu_and_gpu [0 ].name ])
10
-
11
- minimal = env .Program ('minimal' ,'minimal.cu' )
12
-
13
- env .Install ('#/lib' ,[libmixed_cpu_and_gpu ])
14
- env .Install ('#/bin' ,[minimal ])
15
-
16
- Clean ('#' ,'#/lib' )
17
- Clean ('#' ,'#/bin' )
3
+ env .OptionalCUDA ()
4
+ env .CompileFolderDWIM ('.' )
You can’t perform that action at this time.
0 commit comments