mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-29 13:30:32 +01:00
32 lines
669 B
Plaintext
32 lines
669 B
Plaintext
|
#!/usr/bin/env python
|
||
|
# encoding: ISO8859-1
|
||
|
# Thomas Nagy, 2010
|
||
|
|
||
|
top = '.'
|
||
|
out = 'build'
|
||
|
|
||
|
def options(opt):
|
||
|
opt.load('compiler_cxx')
|
||
|
|
||
|
def configure(conf):
|
||
|
conf.load('compiler_cxx') # cuda does not compile in c mode
|
||
|
|
||
|
# the tests will fail if the libraries cannot be found
|
||
|
# try pre_setting some variables, like this
|
||
|
# conf.env.LIBPATH_CUDA = ['c:\\foo\\bar\\lib']
|
||
|
# conf.env.INCLUDES_CUDA = ['c:\\foo\\bar\\includes']
|
||
|
|
||
|
conf.load('cuda', tooldir='.')
|
||
|
|
||
|
def build(bld):
|
||
|
|
||
|
t = bld.program(
|
||
|
source = 'test.cu main.cpp',
|
||
|
target = 'app',
|
||
|
use = 'CUDA CUDART')
|
||
|
|
||
|
#t.env.CUDAFLAGS = ['-deviceemu']
|
||
|
# --ptxas-options="-v"
|
||
|
# --ptxas-options="-v -maxrregcount=10"
|
||
|
|