sla package

Submodules

sla.module module

class sla.module.core_module(relative_path=None, extra_compile_args=None)

Bases: object

get_extension()
sla.module.customize_compiler_for_nvcc(self)

Inject deep into distutils to customize how the dispatch to gcc/nvcc works.

If you subclass UnixCCompiler, it’s not trivial to get your subclass injected in, and still have the right customizations (i.e. distutils.sysconfig.customize_compiler) run on it. So instead of going the OO route, I have this. Note, it’s kindof like a wierd functional subclassing going on.

sla.module.find_in_path(name, path)

Find a file in a search path

sla.module.locate_cuda()

Locate the CUDA environment on the system

Returns a dict with keys ‘home’, ‘nvcc’, ‘include’, and ‘lib64’ and values giving the absolute path to each directory.

everything is based on finding ‘nvcc’ in the PATH.

sla.setup module

sla.sla module

sla

sla.sla.extrapolate()

SLA API

Module contents