From fdc4eebd7f5a6758c0618aeb30b6a022180722f5 Mon Sep 17 00:00:00 2001 From: Sandra Janicki Date: Wed, 15 Nov 2023 14:01:27 -0700 Subject: [PATCH] disable openmp; build with debug info --- CMakeLists.txt | 2 +- jvm-packages/create_jni.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb3e89b4d29d..b889b0767f34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ set_default_configuration_release() #-- Options ## User options option(BUILD_C_DOC "Build documentation for C APIs using Doxygen." OFF) -option(USE_OPENMP "Build with OpenMP support." ON) +option(USE_OPENMP "Build with OpenMP support." OFF) option(BUILD_STATIC_LIB "Build static library" OFF) option(FORCE_SHARED_CRT "Build with dynamic CRT on Windows (/MD)" OFF) option(RABIT_BUILD_MPI "Build MPI" OFF) diff --git a/jvm-packages/create_jni.py b/jvm-packages/create_jni.py index 18908fc1c0d5..835d799612d7 100755 --- a/jvm-packages/create_jni.py +++ b/jvm-packages/create_jni.py @@ -15,7 +15,7 @@ CONFIG = { - "USE_OPENMP": "ON", + "USE_OPENMP": "OFF", "USE_HDFS": "OFF", "USE_AZURE": "OFF", "USE_S3": "OFF", @@ -118,7 +118,7 @@ def normpath(path): lib_dir = os.path.join(os.pardir, 'lib') if os.path.exists(lib_dir): shutil.rmtree(lib_dir) - run("cmake .. " + " ".join(args) + maybe_generator) + run("cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. " + " ".join(args) + maybe_generator) run("cmake --build . --config Release" + maybe_parallel_build) with cd("demo/CLI/regression"):