LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Functions | Variables
cuda Namespace Reference

Functions

def CUDANVCCStaticObjectEmitter
 
def CUDANVCCSharedObjectEmitter
 
def generate
 
def exists
 

Variables

tuple CUDAScanner = SCons.Scanner.C.CScanner()
 

Detailed Description

cuda

CUDA Tool for SCons

Function Documentation

def cuda.CUDANVCCSharedObjectEmitter (   target,
  source,
  env 
)

Definition at line 24 of file cuda.py.

24 
25 def CUDANVCCSharedObjectEmitter(target, source, env):
26  tgt, src = SCons.Defaults.SharedObjectEmitter(target, source, env)
27  for file in src:
28  lifile = os.path.splitext(src[0].rstr())[0] + '.linkinfo'
29  #tgt.append(lifile)
30  return tgt, src
def CUDANVCCSharedObjectEmitter
Definition: cuda.py:24
def cuda.CUDANVCCStaticObjectEmitter (   target,
  source,
  env 
)

Definition at line 18 of file cuda.py.

18 
19 def CUDANVCCStaticObjectEmitter(target, source, env):
20  tgt, src = SCons.Defaults.StaticObjectEmitter(target, source, env)
21  for file in src:
22  lifile = os.path.splitext(src[0].rstr())[0] + '.linkinfo'
23  #tgt.append(lifile)
return tgt, src
def CUDANVCCStaticObjectEmitter
Definition: cuda.py:18
def cuda.exists (   env)

Definition at line 53 of file cuda.py.

53 
54 def exists(env):
55  return env.Detect('nvcc')
56 
def exists
Definition: cuda.py:53
def cuda.generate (   env)

Definition at line 31 of file cuda.py.

31 
32 def generate(env):
33  staticObjBuilder, sharedObjBuilder = SCons.Tool.createObjBuilders(env);
34  staticObjBuilder.add_action('.cu', '$STATICNVCCCMD')
35  staticObjBuilder.add_emitter('.cu', CUDANVCCStaticObjectEmitter)
36  sharedObjBuilder.add_action('.cu', '$SHAREDNVCCCMD')
37  sharedObjBuilder.add_emitter('.cu', CUDANVCCSharedObjectEmitter)
38  SCons.Tool.SourceFileScanner.add_scanner('.cu', CUDAScanner)
39 
40  # default compiler
41  env['NVCC'] = 'nvcc'
42 
43  # default flags for the NVCC compiler
44  env['NVCCFLAGS'] = ''
45  env['STATICNVCCFLAGS'] = ''
46  env['SHAREDNVCCFLAGS'] = ''
47  env['ENABLESHAREDNVCCFLAG'] = '-shared'
48  env['NVCCCMDLINE'] = ''
49 
50  # default NVCC commands
51  env['STATICNVCCCMD'] = '$NVCC -o $TARGET -c $NVCCFLAGS $_CPPINCFLAGS $STATICNVCCFLAGS $NVCCCMDLINE $SOURCES'
52  env['SHAREDNVCCCMD'] = '$NVCC -o $TARGET -c $NVCCFLAGS $_CPPINCFLAGS $SHAREDNVCCFLAGS $ENABLESHAREDNVCCFLAG $NVCCCMDLINE $SOURCES'
def generate
Definition: cuda.py:31

Variable Documentation

tuple cuda.CUDAScanner = SCons.Scanner.C.CScanner()

Definition at line 13 of file cuda.py.