******************************************************************************** conan test conan-center-index/recipes/bs-thread-pool/all/test_package/conanfile.py bs-thread-pool/3.0.0@#5a8f794508a606ddfd8e975b40d34fcd -pr /home/conan/w/prod/BuildSingleReference/45616/830b2664-618d-41fe-901f-702a16959cef/profile_linux_8_libstdcpp11_gcc_release_64..txt ******************************************************************************** Configuration: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=8 os=Linux [options] [build_requires] [env] bs-thread-pool/3.0.0 (test package): Installing package Requirements bs-thread-pool/3.0.0 from local cache - Cache Packages bs-thread-pool/3.0.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache Installing (downloading, building) binaries... bs-thread-pool/3.0.0: Already installed! bs-thread-pool/3.0.0 (test package): Generator cmake_find_package_multi created bs-thread-pool-config-version.cmake bs-thread-pool/3.0.0 (test package): Generator cmake_find_package_multi created bs-thread-pool-config.cmake bs-thread-pool/3.0.0 (test package): Generator cmake_find_package_multi created bs-thread-poolTargets.cmake bs-thread-pool/3.0.0 (test package): Generator cmake_find_package_multi created bs-thread-poolTarget-release.cmake bs-thread-pool/3.0.0 (test package): Generator cmake created conanbuildinfo.cmake bs-thread-pool/3.0.0 (test package): Generator txt created conanbuildinfo.txt bs-thread-pool/3.0.0 (test package): Aggregating env generators bs-thread-pool/3.0.0 (test package): Generated conaninfo.txt bs-thread-pool/3.0.0 (test package): Generated graphinfo Using lockfile: '/home/conan/w/prod/BuildSingleReference/conan-center-index/recipes/bs-thread-pool/all/test_package/build/4b28ebb7ea3c528399c12d8b7aa8d76c79abf4d1/conan.lock' Using cached profile from lockfile [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK bs-thread-pool/3.0.0 (test package): Calling build() ----Running------ > cd '/home/conan/w/prod/BuildSingleReference/conan-center-index/recipes/bs-thread-pool/all/test_package/build/4b28ebb7ea3c528399c12d8b7aa8d76c79abf4d1' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="8" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DCMAKE_INSTALL_PREFIX="/home/conan/w/prod/BuildSingleReference/conan-center-index/recipes/bs-thread-pool/all/test_package/build/4b28ebb7ea3c528399c12d8b7aa8d76c79abf4d1/package" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_PREFIX_PATH="/home/conan/w/prod/BuildSingleReference/conan-center-index/recipes/bs-thread-pool/all/test_package/build/4b28ebb7ea3c528399c12d8b7aa8d76c79abf4d1" -DCMAKE_MODULE_PATH="/home/conan/w/prod/BuildSingleReference/conan-center-index/recipes/bs-thread-pool/all/test_package/build/4b28ebb7ea3c528399c12d8b7aa8d76c79abf4d1" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev '/home/conan/w/prod/BuildSingleReference/conan-center-index/recipes/bs-thread-pool/all/test_package' ----------------- -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Conan: called by CMake conan helper -- Conan: Adjusting output directories -- Conan: Using cmake global configuration -- Conan: Adjusting default RPATHs Conan policies -- Conan: Adjusting language standard -- Conan: Compiler GCC>=5, checking major version 8 -- Conan: Checking correct version: 8 -- Conan: C++ stdlib: libstdc++11 -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /home/conan/w/prod/BuildSingleReference/conan-center-index/recipes/bs-thread-pool/all/test_package/build/4b28ebb7ea3c528399c12d8b7aa8d76c79abf4d1 ----Running------ > cmake --build '/home/conan/w/prod/BuildSingleReference/conan-center-index/recipes/bs-thread-pool/all/test_package/build/4b28ebb7ea3c528399c12d8b7aa8d76c79abf4d1' '--' '-j3' ----------------- Scanning dependencies of target test_package [ 50%] Building CXX object CMakeFiles/test_package.dir/test_package.cpp.o [100%] Linking CXX executable bin/test_package [100%] Built target test_package bs-thread-pool/3.0.0 (test package): Running test() ----Running------ > bin/test_package ----------------- A C++17 Thread Pool for High-Performance Scientific Computing (c) 2022 Barak Shoshany (baraksh@gmail.com) (http://baraksh.com) GitHub: https://github.com/bshoshany/thread-pool Thread pool library version is v3.0.0 (2022-05-30). Hardware concurrency is 4. Important: Please do not run any other applications, especially multithreaded applications, in parallel with this test! ==================================== Checking that the constructor works: ==================================== Checking that the thread pool reports a number of threads equal to the hardware concurrency... -> PASSED! Checking that the manually counted number of unique thread IDs is equal to the reported number of threads... -> PASSED! ============================ Checking that reset() works: ============================ Checking that after reset() the thread pool reports a number of threads equal to half the hardware concurrency... -> PASSED! Checking that after reset() the manually counted number of unique thread IDs is equal to the reported number of threads... -> PASSED! Checking that after a second reset() the thread pool reports a number of threads equal to the hardware concurrency... -> PASSED! Checking that after a second reset() the manually counted number of unique thread IDs is equal to the reported number of threads... -> PASSED! ================================ Checking that push_task() works: ================================ Checking that push_task() works for a function with no arguments or return value... -> PASSED! Checking that push_task() works for a function with one argument and no return value... -> PASSED! Checking that push_task() works for a function with two arguments and no return value... -> PASSED! ============================= Checking that submit() works: ============================= Checking that submit() works for a function with no arguments or return value... -> PASSED! Checking that submit() works for a function with one argument and no return value... -> PASSED! Checking that submit() works for a function with two arguments and no return value... -> PASSED! Checking that submit() works for a function with no arguments and a return value... -> PASSED! Checking that submit() works for a function with one argument and a return value... -> PASSED! Checking that submit() works for a function with two arguments and a return value... -> PASSED! ======================================= Checking that wait_for_tasks() works... ======================================= -> PASSED! ======================================= Checking that parallelize_loop() works: ======================================= Verifying that a loop from -730888 to -539265 with 3 tasks modifies all indices... -> PASSED! Verifying that a loop from -487789 to 35713 with 3 tasks modifies all indices... -> PASSED! Verifying that a loop from 131944 to -626773 with 1 task modifies all indices... -> PASSED! Verifying that a loop from -354404 to -841956 with 2 tasks modifies all indices... -> PASSED! Verifying that a loop from -424790 to -787363 with 1 task modifies all indices... -> PASSED! Verifying that a loop from -44975 to 600370 with 4 tasks modifies all indices... -> PASSED! Verifying that a loop from -368943 to 620336 with 2 tasks modifies all indices... -> PASSED! Verifying that a loop from 795192 to -358401 with 2 tasks modifies all indices... -> PASSED! Verifying that a loop from 54230 to 526431 with 4 tasks modifies all indices... -> PASSED! Verifying that a loop from -319141 to -317557 with 1 task modifies all indices... -> PASSED! Verifying that a loop from -606894 to -446543 with 1 task correctly sums all indices... -> PASSED! Verifying that a loop from -61632 to -824939 with 2 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 371596 to 671121 with 2 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 350879 to -624044 with 4 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 727129 to 368472 with 1 task correctly sums all indices... -> PASSED! Verifying that a loop from -471451 to 300916 with 2 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 268789 to -501328 with 3 tasks correctly sums all indices... -> PASSED! Verifying that a loop from -197469 to -452305 with 4 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 623244 to 901926 with 1 task correctly sums all indices... -> PASSED! Verifying that a loop from -809746 to 550362 with 4 tasks correctly sums all indices... -> PASSED! ==================================== Checking that task monitoring works: ==================================== Resetting pool to 4 threads. Submitting 12 tasks. After submission, should have: 12 tasks total, 4 tasks running, 8 tasks queued... -> PASSED! Task 2 released. Task 0 released. Task 1 released. Task 3 released. After releasing 4 tasks, should have: 8 tasks total, 4 tasks running, 4 tasks queued... -> PASSED! Task 4 released. Task 7 released. Task 5 released. Task 6 released. After releasing 4 more tasks, should have: 4 tasks total, 4 tasks running, 0 tasks queued... -> PASSED! Task 8 released. Task 10 released. Task 11 released. Task 9 released. After releasing the final 4 tasks, should have: 0 tasks total, 0 tasks running, 0 tasks queued... -> PASSED! Resetting pool to 4 threads. ============================ Checking that pausing works: ============================ Resetting pool to 4 threads. Pausing pool. Submitting 12 tasks, each one waiting for 200ms. Immediately after submission, should have: 12 tasks total, 0 tasks running, 12 tasks queued... -> PASSED! 300ms later, should still have: 12 tasks total, 0 tasks running, 12 tasks queued... -> PASSED! Unpausing pool. Task 2 done. Task 3 done. Task 0 done. Task 1 done. 300ms later, should have: 8 tasks total, 4 tasks running, 4 tasks queued... -> PASSED! Pausing pool and using wait_for_tasks() to wait for the running tasks. Task 4 done. Task 7 done. Task 6 done. Task 5 done. After waiting, should have: 4 tasks total, 0 tasks running, 4 tasks queued... -> PASSED! 200ms later, should still have: 4 tasks total, 0 tasks running, 4 tasks queued... -> PASSED! Unpausing pool and using wait_for_tasks() to wait for all tasks. Task 11 done. Task 9 done. Task 8 done. Task 10 done. After waiting, should have: 0 tasks total, 0 tasks running, 0 tasks queued... -> PASSED! Resetting pool to 4 threads. ======================================= Checking that exception handling works: ======================================= -> PASSED! ============================================================ Testing that vector operations produce the expected results: ============================================================ Adding two vectors with 438199 elements using 3 tasks... -> PASSED! Adding two vectors with 571439 elements using 4 tasks... -> PASSED! Adding two vectors with 816793 elements using 1 tasks... -> PASSED! Adding two vectors with 651635 elements using 4 tasks... -> PASSED! Adding two vectors with 448480 elements using 1 tasks... -> PASSED! Adding two vectors with 928143 elements using 1 tasks... -> PASSED! Adding two vectors with 736778 elements using 2 tasks... -> PASSED! Adding two vectors with 865841 elements using 3 tasks... -> PASSED! Adding two vectors with 941853 elements using 4 tasks... -> PASSED! Adding two vectors with 254256 elements using 4 tasks... -> PASSED! ++++++++++++++++++++++++++++++ SUCCESS: Passed all 57 checks! ++++++++++++++++++++++++++++++ CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_INSTALL_BINDIR CMAKE_INSTALL_DATAROOTDIR CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_OLDINCLUDEDIR CMAKE_INSTALL_SBINDIR