wscript 665 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy, 2010
  4. top = '.'
  5. out = 'build'
  6. def options(opt):
  7. opt.load('compiler_cxx')
  8. def configure(conf):
  9. conf.load('compiler_cxx') # cuda does not compile in c mode
  10. # the tests will fail if the libraries cannot be found
  11. # try pre_setting some variables, like this
  12. # conf.env.LIBPATH_CUDA = ['c:\\foo\\bar\\lib']
  13. # conf.env.INCLUDES_CUDA = ['c:\\foo\\bar\\includes']
  14. conf.load('cuda', tooldir='.')
  15. def build(bld):
  16. t = bld.program(
  17. source = 'test.cu main.cpp',
  18. target = 'app',
  19. use = 'CUDA CUDART')
  20. #t.env.CUDAFLAGS = ['-deviceemu']
  21. # --ptxas-options="-v"
  22. # --ptxas-options="-v -maxrregcount=10"