提交 15a1693b authored 作者: slefrancois's avatar slefrancois

change nvcc_compiler try_ to class method

上级 53982ecc
......@@ -65,18 +65,17 @@ def add_standard_rpath(rpath):
class NVCC_compiler(Compiler):
supports_amdlibm = False
@staticmethod
def try_compile_tmp(src_code, tmp_prefix='', flags=(),
try_run=False, output=False):
return Compiler._try_compile_tmp(src_code, tmp_prefix, flags,
try_run, output,
nvcc_path)
@staticmethod
def try_flags(flag_list, preambule="", body="",
try_run=False, output=False):
return Compiler._try_flags(flag_list, preambule, body, try_run, output,
nvcc_path)
@classmethod
def try_compile_tmp(cls, src_code, tmp_prefix='', flags=(),
try_run=False, output=False, comp_args=False):
return cls._try_compile_tmp(src_code, tmp_prefix, flags,
try_run, output, nvcc_path, comp_args)
@classmethod
def try_flags(cls, flag_list, preambule="", body="",
try_run=False, output=False, comp_args=False):
return cls._try_flags(flag_list, preambule, body, try_run, output,
nvcc_path, comp_args)
@staticmethod
def version_str():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论