Skip to content

Commit

Permalink
Build CUDA code with '-DNDEBUG' as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquev6 committed Sep 14, 2023
1 parent c7d35c2 commit 2b8c936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def build_extensions(self):
f"boost_python{sys.version_info.major}{sys.version_info.minor}",
"ortools",
] + optional_libraries,
define_macros=[("DOCTEST_CONFIG_DISABLE", None)] + ([("LINCS_HAS_NVCC", None)] if has_nvcc else []),
define_macros=[("NDEBUG", None), ("DOCTEST_CONFIG_DISABLE", None)] + ([("LINCS_HAS_NVCC", None)] if has_nvcc else []),
# @todo(Project management, later) Support several versions of CUDA?
include_dirs=["/usr/local/cuda-12.1/targets/x86_64-linux/include"],
library_dirs=["/usr/local/cuda-12.1/targets/x86_64-linux/lib"],
Expand Down

0 comments on commit 2b8c936

Please sign in to comment.