From 6205570bf655ff01da9558741e0a73ff5429e104 Mon Sep 17 00:00:00 2001 From: Rob Parolin Date: Thu, 4 Sep 2025 14:09:03 -0700 Subject: [PATCH 1/2] Fixing cuda_bindings local build manifesting with GCC-13 on Linux (WSL) --- cuda_bindings/setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cuda_bindings/setup.py b/cuda_bindings/setup.py index 8f0349bcd6..3c5f1bc18b 100644 --- a/cuda_bindings/setup.py +++ b/cuda_bindings/setup.py @@ -248,12 +248,13 @@ def generate_output(infile, local): "-std=c++14", "-fpermissive", "-Wno-deprecated-declarations", - "-D _GLIBCXX_ASSERTIONS", "-fno-var-tracking-assignments", ] if "--debug" in sys.argv: extra_cythonize_kwargs["gdb_debug"] = True extra_compile_args += ["-g", "-O0"] + extra_compile_args += ["-D _GLIBCXX_ASSERTIONS"] # libstdc++ + #extra_compile_args += ["-D _LIBCPP_ENABLE_ASSERTIONS"] # Consider: if clang, use libc++ preprocessor macros. else: extra_compile_args += ["-O3"] From c56fab1caa953bfba5be146809c583e4b0bc8724 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 21:58:25 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto code formatting --- cuda_bindings/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuda_bindings/setup.py b/cuda_bindings/setup.py index 3c5f1bc18b..dabed2a137 100644 --- a/cuda_bindings/setup.py +++ b/cuda_bindings/setup.py @@ -253,8 +253,8 @@ def generate_output(infile, local): if "--debug" in sys.argv: extra_cythonize_kwargs["gdb_debug"] = True extra_compile_args += ["-g", "-O0"] - extra_compile_args += ["-D _GLIBCXX_ASSERTIONS"] # libstdc++ - #extra_compile_args += ["-D _LIBCPP_ENABLE_ASSERTIONS"] # Consider: if clang, use libc++ preprocessor macros. + extra_compile_args += ["-D _GLIBCXX_ASSERTIONS"] # libstdc++ + # extra_compile_args += ["-D _LIBCPP_ENABLE_ASSERTIONS"] # Consider: if clang, use libc++ preprocessor macros. else: extra_compile_args += ["-O3"]