Classes | Functions
cuda Namespace Reference

Classes

class  cuda
 

Functions

def c_hook (self, node)
 
def cxx_hook (self, node)
 
def options (opt)
 
def configure (cfg)
 

Function Documentation

def cuda.c_hook (   self,
  node 
)

Definition at line 20 of file cuda.py.

20 def c_hook(self, node):
21  return self.create_compiled_task('cuda', node)
22 
23 @extension('.cxx')
def c_hook(self, node)
Definition: cuda.py:20
def cuda.configure (   cfg)

Definition at line 34 of file cuda.py.

34 def configure(cfg):
35 
36  generic._configure(cfg, "CUDA", mandatory=False,
37  incs=["cuda.h"], libs=["cuda","cudart"], bins=["nvcc"])
38 
39  if not 'HAVE_CUDA' in cfg.env:
40  return
41  nvccflags = "-shared -Xcompiler -fPIC "
42  nvccflags += os.environ.get("NVCCFLAGS","")
43  cfg.env.NVCCFLAGS += nvccflags.strip().split()
44  print ("NVCCFLAGS = %s" % (' '.join(cfg.env.NVCCFLAGS)))
45 
def _configure(ctx, name, incs=(), libs=(), bins=(), pcname=None, mandatory=True)
Definition: generic.py:50
def configure(cfg)
Definition: cuda.py:34
Proc * join(Pipeline &pipeline, Proc *src, Proc *dst)
Definition: GenPipeline.h:218
void split(std::string const &s, char c, OutIter dest)
Definition: split.h:35
def cuda.cxx_hook (   self,
  node 
)

Definition at line 24 of file cuda.py.

24 def cxx_hook(self, node):
25  # override processing for one particular type of file
26  if getattr(self, 'cuda', False):
27  return self.create_compiled_task('cuda', node)
28  else:
29  return self.create_compiled_task('cxx', node)
30 
def cxx_hook(self, node)
Definition: cuda.py:24
def cuda.options (   opt)

Definition at line 31 of file cuda.py.

31 def options(opt):
32  generic._options(opt, "CUDA")
33 
def _options(opt, name)
Definition: generic.py:39
def options(opt)
Definition: cuda.py:31