+0
−1
+21
−2
Loading
Add CMake user setting to enable DCA_WITH_HPX
Add new parallel_hpx library that can be used in place of
parallel_stdthread to send all work to hpx::async and thread queues
Replace all library references to parallel_stdthread with ${DCA_THREADING_LIBS}
and set the DCA_THREADING_LIBS variable to parallel_stdthread or parallel_hpx
according to CMake user setting
Remove all #include "dca/parallel/stdthread/stdthread.hpp" and replace with
a generated #include "dca/config/threading.hpp" that sets the correct
variables to switch between threading libraries
Replace all references to future/mutex/condition_variable/locks with
thread_traits:: types that are defined in the generated threading.hpp
file and use std:: or hpx:: variants accordingly
Remove all use of dca::parallel::stdthread and replace with Threading
type setup in threading.hpp
Modify dca_add_gtest macro to detect if hpx is being used and add
appropriate flags to ensure that the hpx runtime is started when
int main() is called
Consistently use target_link_libraries(... PUBLIC/PRIVATE/INTERFACE ...)
to ensure compatibility with other libraries such as HPX that use the
newer CMake conventions