mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-05 22:04:27 +08:00
* revert duplicate chunk in release notes * replace deprecated ifdefs This one gets rid of USE_BUILTIN_POPCNT and RDK_THREADSAFE_SS use RDK_OPTIMIZE_POPCNT or RDK_BUILD_THREADSAFE_SSS instead * get rid of BUILD_COORDGEN_SUPPORT from ROMol.i * fix a stupid typo * update release notes
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
#include <RDGeneral/Invariant.h>
|
||||
#include <RDGeneral/RDThreads.h>
|
||||
#ifdef RDK_THREADSAFE_SSS
|
||||
#ifdef RDK_BUILD_THREADSAFE_SSS
|
||||
#include <thread>
|
||||
#include <future>
|
||||
#endif
|
||||
@@ -101,13 +101,13 @@ void generic_nbr_helper(std::vector<MultiFPBReader::ResultTuple> &res, T func,
|
||||
res.clear();
|
||||
res.resize(0);
|
||||
numThreads = getNumThreadsToUse(numThreads);
|
||||
#ifdef RDK_THREADSAFE_SSS
|
||||
#ifdef RDK_BUILD_THREADSAFE_SSS
|
||||
std::vector<std::future<void>> tg;
|
||||
#endif
|
||||
if (numThreads == 1) {
|
||||
func(0, 1, &args);
|
||||
}
|
||||
#ifdef RDK_THREADSAFE_SSS
|
||||
#ifdef RDK_BUILD_THREADSAFE_SSS
|
||||
else {
|
||||
for (unsigned int tid = 0; tid < numThreads && tid < args.readers.size();
|
||||
++tid) {
|
||||
@@ -163,7 +163,7 @@ void get_containing_nbrs(
|
||||
std::vector<std::pair<unsigned int, unsigned int>> &res,
|
||||
unsigned int numThreads, bool initOnSearch) {
|
||||
numThreads = getNumThreadsToUse(numThreads);
|
||||
#ifdef RDK_THREADSAFE_SSS
|
||||
#ifdef RDK_BUILD_THREADSAFE_SSS
|
||||
std::vector<std::future<void>> tg;
|
||||
#endif
|
||||
|
||||
@@ -171,7 +171,7 @@ void get_containing_nbrs(
|
||||
if (numThreads == 1) {
|
||||
contain_helper(0, 1, bv, &d_readers, &accum, initOnSearch);
|
||||
}
|
||||
#ifdef RDK_THREADSAFE_SSS
|
||||
#ifdef RDK_BUILD_THREADSAFE_SSS
|
||||
else {
|
||||
for (unsigned int tid = 0; tid < numThreads && tid < d_readers.size();
|
||||
++tid) {
|
||||
|
||||
Reference in New Issue
Block a user