[PYTHON] Removed -std=gnu++11 in extra_cflags
This commit is contained in:
committed by
Philippe Tillet
parent
04a9ea060b
commit
1426b103e9
@@ -85,13 +85,13 @@ def _make_framework_op(arg_types):
|
|||||||
ccdir = os.path.join(libtriton.__file__, os.path.pardir)
|
ccdir = os.path.join(libtriton.__file__, os.path.pardir)
|
||||||
ccdir = os.path.realpath(ccdir)
|
ccdir = os.path.realpath(ccdir)
|
||||||
print('[TRITON] Compiling op...')
|
print('[TRITON] Compiling op...')
|
||||||
lib = torch.utils.cpp_extension.load_inline(name, src,
|
lib = torch.utils.cpp_extension.load(name, cpp,
|
||||||
extra_ldflags = [f'-L{ccdir}', '-ltriton'],
|
extra_ldflags = [f'-L{ccdir}', '-ltriton'],
|
||||||
extra_include_paths = [os.path.join(ccdir, 'include')],
|
extra_include_paths = [os.path.join(ccdir, 'include')],
|
||||||
extra_cflags = [f'-std=gnu++11'],
|
#extra_cflags = [f'-std=gnu++11'],
|
||||||
build_directory = root,
|
build_directory = root,
|
||||||
is_python_module = False,
|
is_python_module = False,
|
||||||
with_cuda = True)
|
with_cuda = True)
|
||||||
fw.torch.ops.load_library(so)
|
fw.torch.ops.load_library(so)
|
||||||
return getattr(fw.torch.ops.triton, name)
|
return getattr(fw.torch.ops.triton, name)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user