Skip to content

Commit b961141

Browse files
author
Chris Sullivan
committed
Updating with improved build system.
1 parent 2b177ec commit b961141

File tree

5 files changed

+558
-414
lines changed

5 files changed

+558
-414
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
# 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

SConscript

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
Import('env')
22

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('.')

0 commit comments

Comments
 (0)