diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2014-03-31 15:51:40 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2014-03-31 15:51:49 +0400 |
commit | 277fb1a31fc4b0c9691b3bbab43fd1a970d3e575 (patch) | |
tree | 14fdf30a1783d0d4b17ca83f4de8b4e0c4276c66 /source/blender/blenlib/BLI_threads.h | |
parent | e05d35bfaffec69ed4d990f6a90a1b9244970aa4 (diff) |
Sculpt/dyntopo: Make the omp threads configurable to overcome performance issues
- autodetect optimal default, which typically avoids HT threads
- can store setting in .blend per scene
- this does not touch general omp max threads, due i found other areas where the calculations are fitting for huge corecount
- Intel notes, some of the older generation processors with HyperThreading would not provide significant performance boost for FPU intensive applications. On those systems you might want to set OMP_NUM_THREADS = total number of cores (not total number of hardware theads).
Diffstat (limited to 'source/blender/blenlib/BLI_threads.h')
-rw-r--r-- | source/blender/blenlib/BLI_threads.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index 62eadb8a8b5..b522d95ddae 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -75,6 +75,8 @@ int BLI_system_thread_count(void); /* gets the number of threads the system void BLI_system_num_threads_override_set(int num); int BLI_system_num_threads_override_get(void); +int BLI_omp_thread_count(void); /* gets the number of openmp threads the system can make use of */ + /* Global Mutex Locks * * One custom lock available now. can be extended. */ |