btGetOpenMPTaskScheduler and btCreateDefaultTaskScheduler always return null
I would like t use this...
btCollisionDispatcherMt throws an error stating that a task sheduler is not set (if i set it btSetTaskScheduler(btGetSequentialTaskScheduler()) , it works fine, but I would want to use multicpu)
Please let me know if any function has to be called to initialize these task schedulers or bullet3 needs to be compiled with some flag in cmake.
Thanks
Unable to get btCreateDefaultTaskScheduler or btGetOpenMPTaskScheduler
-
- Posts: 8
- Joined: Mon Dec 23, 2019 8:12 am
-
- Posts: 8
- Joined: Mon Dec 23, 2019 8:12 am
-
- Posts: 8
- Joined: Mon Dec 23, 2019 8:12 am
Re: Unable to get btCreateDefaultTaskScheduler or btGetOpenMPTaskScheduler
looking at the code
// create an OpenMP task scheduler (if available, otherwise returns null)
786 btITaskScheduler* btGetOpenMPTaskScheduler()
787 {
788 #if BT_USE_OPENMP && BT_THREADSAFE
789 static btTaskSchedulerOpenMP sTaskScheduler;
790 return &sTaskScheduler;
791 #else
792 return NULL;
793 #endif
794 }
I need to set BT_USE_OPENMP=1 and BT_THREADSAFE=1 and then compile: https://pybullet.org/Bullet/BulletFull/ ... tml#l00786
// create an OpenMP task scheduler (if available, otherwise returns null)
786 btITaskScheduler* btGetOpenMPTaskScheduler()
787 {
788 #if BT_USE_OPENMP && BT_THREADSAFE
789 static btTaskSchedulerOpenMP sTaskScheduler;
790 return &sTaskScheduler;
791 #else
792 return NULL;
793 #endif
794 }
I need to set BT_USE_OPENMP=1 and BT_THREADSAFE=1 and then compile: https://pybullet.org/Bullet/BulletFull/ ... tml#l00786