Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bfbce813b6
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.765 kb
import Options
from os import unlink, symlink, system
from os.path import exists, abspath
srcdir = "."
blddir = "build"
VERSION = "0.0.1"
def set_options(opt):
opt.tool_options("compiler_cxx")
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
if not conf.check_cfg(package='cuda', uselib_store='CUDA'):
if not conf.check(lib="cuda",
libpath=['/usr/local/cuda/lib'],
includes=['/usr/local/cuda/include'],
uselib_store="CUDA"):
conf.fatal('Cannot find CUDA library.');
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.target = "cuda"
obj.source = "src/bindings.cpp src/cuda_device.cpp"
obj.uselib = "CUDA"
Jump to Line
Something went wrong with that request. Please try again.