From 5f5129da5039c55976e44c8914a46b3d77b5ce46 Mon Sep 17 00:00:00 2001 From: PetrovKP Date: Sun, 7 Feb 2021 12:45:10 +0000 Subject: [PATCH] del omp places --- configs/lgbm_mb_cpu_config.json | 2 +- configs/testing/daal4py_xgboost.json | 2 +- configs/testing/xgboost.json | 2 +- configs/xgb_cpu_config.json | 2 +- configs/xgb_gpu_config.json | 2 +- configs/xgb_mb_cpu_config.json | 2 +- utils.py | 1 - 7 files changed, 6 insertions(+), 7 deletions(-) diff --git a/configs/lgbm_mb_cpu_config.json b/configs/lgbm_mb_cpu_config.json index e8a2111da..92007a083 100755 --- a/configs/lgbm_mb_cpu_config.json +++ b/configs/lgbm_mb_cpu_config.json @@ -1,5 +1,5 @@ { - "omp_env": ["OMP_NUM_THREADS", "OMP_PLACES"], + "omp_env": ["OMP_NUM_THREADS"], "common": { "lib": ["modelbuilders"], "data-format": ["pandas"], diff --git a/configs/testing/daal4py_xgboost.json b/configs/testing/daal4py_xgboost.json index 56accdce3..1529c5fd7 100755 --- a/configs/testing/daal4py_xgboost.json +++ b/configs/testing/daal4py_xgboost.json @@ -1,5 +1,5 @@ { - "omp_env": ["OMP_NUM_THREADS", "OMP_PLACES"], + "omp_env": ["OMP_NUM_THREADS"], "common": { "lib": ["modelbuilders"], "data-format": ["pandas"], diff --git a/configs/testing/xgboost.json b/configs/testing/xgboost.json index 5107ee793..bf45de088 100755 --- a/configs/testing/xgboost.json +++ b/configs/testing/xgboost.json @@ -1,5 +1,5 @@ { - "omp_env": ["OMP_NUM_THREADS", "OMP_PLACES"], + "omp_env": ["OMP_NUM_THREADS"], "common": { "lib": ["xgboost"], "data-format": ["pandas"], diff --git a/configs/xgb_cpu_config.json b/configs/xgb_cpu_config.json index ecc0da15b..3c09bdf27 100644 --- a/configs/xgb_cpu_config.json +++ b/configs/xgb_cpu_config.json @@ -1,5 +1,5 @@ { - "omp_env": ["OMP_NUM_THREADS", "OMP_PLACES"], + "omp_env": ["OMP_NUM_THREADS"], "common": { "lib": ["xgboost"], "data-format": ["pandas"], diff --git a/configs/xgb_gpu_config.json b/configs/xgb_gpu_config.json index 44d9aec45..924eb3d1d 100644 --- a/configs/xgb_gpu_config.json +++ b/configs/xgb_gpu_config.json @@ -1,5 +1,5 @@ { - "omp_env": ["OMP_NUM_THREADS", "OMP_PLACES"], + "omp_env": ["OMP_NUM_THREADS"], "common": { "lib": ["xgboost"], "data-format": ["cudf"], diff --git a/configs/xgb_mb_cpu_config.json b/configs/xgb_mb_cpu_config.json index 0c8128aef..a7537372e 100755 --- a/configs/xgb_mb_cpu_config.json +++ b/configs/xgb_mb_cpu_config.json @@ -1,5 +1,5 @@ { - "omp_env": ["OMP_NUM_THREADS", "OMP_PLACES"], + "omp_env": ["OMP_NUM_THREADS"], "common": { "lib": ["modelbuilders"], "data-format": ["pandas"], diff --git a/utils.py b/utils.py index a3ad7f7e8..058516179 100755 --- a/utils.py +++ b/utils.py @@ -86,7 +86,6 @@ def get_omp_env(): omp_num_threads = str(cpu_count // 2) if _is_ht_enabled() else str(cpu_count) omp_env = { - 'OMP_PLACES': f'{{0}}:{cpu_count}:1', 'OMP_NUM_THREADS': omp_num_threads } return omp_env