Skip to content

Commit 472fa8a

Browse files
committed
fix runtime undefined reference error caused by libstdc++ Dual ABI
1 parent 49f9eb2 commit 472fa8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def build_extension(self, ext):
310310
'-DPYTHON_INCLUDE_DIR=' + python_include_dir,
311311
'-DPYTORCH_INCLUDE_DIRS=' + pytorch_install_dir + "/include",
312312
'-DPYTORCH_LIBRARY_DIRS=' + pytorch_install_dir + "/lib",
313+
'-DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=' + str(int(torch._C._GLIBCXX_USE_CXX11_ABI)),
313314
]
314315

315316
if _check_env_flag("IPEX_DISP_OP"):

0 commit comments

Comments
 (0)