Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2014-04-27 20:38:53 +0400
committerJens Verwiebe <info@jensverwiebe.de>2014-04-27 20:39:03 +0400
commitf3798fa45e3b4936679948f9c9f51103dfe7a9d4 (patch)
tree48d270af79684a5d6c6a2d08359c3e724786ea10 /source/blender/blenlib/intern/threads.c
parent4aea8f10855e9de162ca3ea0c232d2590ec386ba (diff)
Revert the testing sculpt openmp thread control and limit for OSX to physical threads as in 2.70a tag
Diffstat (limited to 'source/blender/blenlib/intern/threads.c')
-rw-r--r--source/blender/blenlib/intern/threads.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/source/blender/blenlib/intern/threads.c b/source/blender/blenlib/intern/threads.c
index 0cdefac902d..74e513b5c90 100644
--- a/source/blender/blenlib/intern/threads.c
+++ b/source/blender/blenlib/intern/threads.c
@@ -62,15 +62,6 @@
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 2) && !defined(__clang__)
# define USE_APPLE_OMP_FIX
#endif
-
-/* how many cores not counting HT aka physical cores */
-static int system_physical_thread_count(void)
-{
- int ptcount;
- size_t ptcount_len = sizeof(ptcount);
- sysctlbyname("hw.physicalcpu", &ptcount, &ptcount_len, NULL, 0);
- return ptcount;
-}
#endif // __APPLE__
#ifdef USE_APPLE_OMP_FIX
@@ -350,24 +341,6 @@ void BLI_end_threads(ListBase *threadbase)
/* System Information */
-/**
- * Returns the number of openmp threads the system can make use of
- */
-int BLI_system_thread_count_omp(void)
-{
- int t;
-#ifdef _OPENMP
-#ifdef __APPLE__
- t = system_physical_thread_count();
-#else
- t = omp_get_num_procs();
-#endif
-#else
- t = 1;
-#endif
- return t;
-}
-
/* how many threads are native on this system? */
int BLI_system_thread_count(void)
{