LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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.