Mentions légales du service

Skip to content
Snippets Groups Projects
Unverified Commit d3d5262b authored by gdurif's avatar gdurif Committed by GitHub
Browse files

Merge pull request #9 from getspams/fix-omp-warn

fix omp deprecation warnings
parents fa780b79 90db34d3
No related branches found
No related tags found
No related merge requests found
...@@ -289,7 +289,7 @@ static inline int init_omp(const int numThreads) { ...@@ -289,7 +289,7 @@ static inline int init_omp(const int numThreads) {
int NUM_THREADS; int NUM_THREADS;
#ifdef _OPENMP #ifdef _OPENMP
NUM_THREADS = (numThreads == -1) ? MIN(MAX_THREADS,omp_get_num_procs()) : numThreads; NUM_THREADS = (numThreads == -1) ? MIN(MAX_THREADS,omp_get_num_procs()) : numThreads;
omp_set_nested(0); omp_set_max_active_levels(1);
omp_set_dynamic(0); omp_set_dynamic(0);
omp_set_num_threads(NUM_THREADS); omp_set_num_threads(NUM_THREADS);
#else #else
......
2.6.3.1 2.6.3.2
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment