diff --git a/playground/cuda/test.cpp b/playground/cuda/test.cpp new file mode 100644 index 00000000..ffacf6e6 --- /dev/null +++ b/playground/cuda/test.cpp @@ -0,0 +1,5 @@ +int main() +{ + return 0; +} + diff --git a/playground/cuda/wscript b/playground/cuda/wscript index 64053112..f4b56f2a 100644 --- a/playground/cuda/wscript +++ b/playground/cuda/wscript @@ -16,14 +16,23 @@ def configure(conf): # conf.env.LIBPATH_CUDA = ['c:\\foo\\bar\\lib'] # conf.env.INCLUDES_CUDA = ['c:\\foo\\bar\\includes'] + conf.env = conf.all_envs['cuda'] = conf.env.derive() conf.load('cuda', tooldir='.') def build(bld): + # native application + bld.program( + source = 'test.cpp', + target = 'testapp', + ) + + # cuda application t = bld.program( source = 'test.cu main.cpp', target = 'app', - use = 'CUDA CUDART') + use = 'CUDA CUDART', + env = bld.all_envs['cuda']) #t.env.CUDAFLAGS = ['-deviceemu'] # --ptxas-options="-v"