******************************************************************************** conan test conan-center-index\recipes\bshoshany-thread-pool\all\test_package\conanfile.py bshoshany-thread-pool/3.0.0@#ebd17965d62b1151dafe2df9da864106 -pr C:\J\w\prod\BuildSingleReference@3\46025\f8c3b75f-96d5-46ec-8fb7-0091f6a60003/profile_windows_16_mt_vs_release_64..txt ******************************************************************************** Auto detecting your dev setup to initialize the default profile (C:\J\w\prod\BuildSingleReference@3\.conan\profiles\default) Found Visual Studio 17 Default settings os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 compiler=Visual Studio compiler.version=17 build_type=Release *** You can change them in C:\J\w\prod\BuildSingleReference@3\.conan\profiles\default *** *** Or override with -s compiler='other' -s ...s*** Configuration: [settings] arch=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MT compiler.version=16 os=Windows [options] [build_requires] [env] bshoshany-thread-pool/3.0.0 (test package): Installing package Requirements bshoshany-thread-pool/3.0.0 from local cache - Cache Packages bshoshany-thread-pool/3.0.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download Installing (downloading, building) binaries... bshoshany-thread-pool/3.0.0: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'c3i_PR-11279' Downloading conanmanifest.txt Downloading conaninfo.txt Downloading conan_package.tgz bshoshany-thread-pool/3.0.0: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 bshoshany-thread-pool/3.0.0: Downloaded package revision 1d052266b4edbff930f9a893e51b3f9e bshoshany-thread-pool/3.0.0 (test package): Generator cmake created conanbuildinfo.cmake bshoshany-thread-pool/3.0.0 (test package): Generator txt created conanbuildinfo.txt bshoshany-thread-pool/3.0.0 (test package): Aggregating env generators bshoshany-thread-pool/3.0.0 (test package): Generated conaninfo.txt bshoshany-thread-pool/3.0.0 (test package): Generated graphinfo Using lockfile: 'C:\J\w\prod\BuildSingleReference@3\conan-center-index\recipes\bshoshany-thread-pool\all\test_package\build\f233a19ee6558bcc4813244b3196decb3d6099e2/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 bshoshany-thread-pool/3.0.0 (test package): Calling build() ----Running------ > cd C:\J\w\prod\BuildSingleReference@3\conan-center-index\recipes\bshoshany-thread-pool\all\test_package\build\f233a19ee6558bcc4813244b3196decb3d6099e2 && cmake -G "Visual Studio 16 2019" -A "x64" -DCONAN_LINK_RUNTIME="/MT" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="Visual Studio" -DCONAN_COMPILER_VERSION="16" -DCONAN_CXX_FLAGS="/MP8" -DCONAN_C_FLAGS="/MP8" -DCMAKE_INSTALL_PREFIX="C:\J\w\prod\BuildSingleReference@3\conan-center-index\recipes\bshoshany-thread-pool\all\test_package\build\f233a19ee6558bcc4813244b3196decb3d6099e2\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_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev C:\J\w\prod\BuildSingleReference@3\conan-center-index\recipes\bshoshany-thread-pool\all\test_package ----------------- -- The C compiler identification is MSVC 19.29.30145.0 -- The CXX compiler identification is MSVC 19.29.30145.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- 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 -- Configuring done -- Generating done -- Build files have been written to: C:/J/w/prod/BuildSingleReference@3/conan-center-index/recipes/bshoshany-thread-pool/all/test_package/build/f233a19ee6558bcc4813244b3196decb3d6099e2 ----Running------ > cmake --build C:\J\w\prod\BuildSingleReference@3\conan-center-index\recipes\bshoshany-thread-pool\all\test_package\build\f233a19ee6558bcc4813244b3196decb3d6099e2 --config Release -- /m:8 /verbosity:minimal ----------------- Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. Checking Build System Building Custom Rule C:/J/w/prod/BuildSingleReference@3/conan-center-index/recipes/bshoshany-thread-pool/all/test_package/CMakeLists.txt test_package.cpp test_package.vcxproj -> C:\J\w\prod\BuildSingleReference@3\conan-center-index\recipes\bshoshany-thread-pool\all\test_package\build\f233a19ee6558bcc4813244b3196decb3d6099e2\bin\test_package.exe Building Custom Rule C:/J/w/prod/BuildSingleReference@3/conan-center-index/recipes/bshoshany-thread-pool/all/test_package/CMakeLists.txt bshoshany-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 8. 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 751848 to 868101 with 7 tasks modifies all indices... -> PASSED! Verifying that a loop from -317379 to -604548 with 1 task modifies all indices... -> PASSED! Verifying that a loop from 710515 to 407983 with 5 tasks modifies all indices... -> PASSED! Verifying that a loop from -769593 to -549946 with 5 tasks modifies all indices... -> PASSED! Verifying that a loop from -755166 to -28501 with 7 tasks modifies all indices... -> PASSED! Verifying that a loop from -131210 to 103248 with 3 tasks modifies all indices... -> PASSED! Verifying that a loop from 637004 to -552270 with 1 task modifies all indices... -> PASSED! Verifying that a loop from 376822 to -741992 with 7 tasks modifies all indices... -> PASSED! Verifying that a loop from -584254 to 583661 with 8 tasks modifies all indices... -> PASSED! Verifying that a loop from -541954 to -715373 with 5 tasks modifies all indices... -> PASSED! Verifying that a loop from -72215 to 788334 with 2 tasks correctly sums all indices... -> PASSED! Verifying that a loop from -261854 to 836010 with 7 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 531648 to 501609 with 1 task correctly sums all indices... -> PASSED! Verifying that a loop from -835695 to 423207 with 6 tasks correctly sums all indices... -> PASSED! Verifying that a loop from -587103 to 667524 with 8 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 815121 to 677868 with 2 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 26218 to 307771 with 1 task correctly sums all indices... -> PASSED! Verifying that a loop from -389723 to 899177 with 1 task correctly sums all indices... -> PASSED! Verifying that a loop from 872149 to 828548 with 4 tasks correctly sums all indices... -> PASSED! Verifying that a loop from 383158 to -910827 with 6 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 0 released. Task 3 released. Task 2 released. Task 1 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 10 released. Task 11 released. Task 8 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 8 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 0 done. Task 2 done. Task 3 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 7 done. Task 5 done. Task 6 done. Task 4 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 9 done. Task 11 done. Task 10 done. Task 8 done. After waiting, should have: 0 tasks total, 0 tasks running, 0 tasks queued... -> PASSED! Resetting pool to 8 threads. ======================================= Checking that exception handling works: ======================================= -> PASSED! ============================================================ Testing that vector operations produce the expected results: ============================================================ Adding two vectors with 858187 elements using 6 tasks... -> PASSED! Adding two vectors with 37338 elements using 2 tasks... -> PASSED! Adding two vectors with 557467 elements using 4 tasks... -> PASSED! Adding two vectors with 66424 elements using 3 tasks... -> PASSED! Adding two vectors with 188872 elements using 5 tasks... -> PASSED! Adding two vectors with 156108 elements using 1 tasks... -> PASSED! Adding two vectors with 184433 elements using 4 tasks... -> PASSED! Adding two vectors with 936374 elements using 4 tasks... -> PASSED! Adding two vectors with 654294 elements using 4 tasks... -> PASSED! Adding two vectors with 292751 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