[BUILD] Windows build pass on LLVM/CUDA/OPENCL (#57)

This commit is contained in:
Tianqi Chen
2017-02-27 14:30:46 -08:00
committed by GitHub
parent 3331020624
commit e43879405b
19 changed files with 119 additions and 45 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ def compile_source(code, target="ptx", arch=None,
file_target = path_target if path_target else temp_target
cmd = ["nvcc"]
cmd += ["--%s" % target, "-O3"]
cmd += ["-arch", arch]
if arch:
cmd += ["-arch", arch]
cmd += ["-o", file_target]
if options:
+1 -1
View File
@@ -44,7 +44,7 @@ def find_lib_path():
raise RuntimeError('Cannot find the files.\n' +
'List of candidates:\n' + str('\n'.join(dll_path)))
if use_runtime:
sys.stderr.write("Loading runtime library... this is execution only\n")
sys.stderr.write("Loading runtime library %s... exec only\n" % lib_found[0])
sys.stderr.flush()
return lib_found
+1 -1
View File
@@ -32,7 +32,7 @@ class Module(ModuleBase):
modules : list of Modules
The module
"""
nmod = ImportsSize(self)
nmod = _ImportsSize(self)
return [_GetImport(self, i) for i in range(nmod)]
def save(self, file_name, fmt=""):