diff --git a/cpp_thread_test/dgemm_thread_safety.cpp b/cpp_thread_test/dgemm_thread_safety.cpp index 8b91d0232..9d42829dc 100644 --- a/cpp_thread_test/dgemm_thread_safety.cpp +++ b/cpp_thread_test/dgemm_thread_safety.cpp @@ -2,11 +2,12 @@ #include #include #include +#include #include "/opt/OpenBLAS_zen_serial/include/cblas.h" const blasint randomMatSize = 1024; //dimension of the random square matrices used -const uint32_t numConcurrentThreads = 64; //number of concurrent calls of the functions being tested -const uint32_t numTestRounds = 32; //number of testing rounds before success exit +const uint32_t numConcurrentThreads = 52; //number of concurrent calls of the functions being tested +const uint32_t numTestRounds = 8; //number of testing rounds before success exit inline void pauser(){ /// a portable way to pause a program @@ -60,6 +61,14 @@ int main(){ std::vector> matBlock(numConcurrentThreads*3); std::vector> futureBlock(numConcurrentThreads); + std::cout<<"*----------------------------*\n"; + std::cout<<"| DGEMM thread safety tester |\n"; + std::cout<<"*----------------------------*\n"; + std::cout<<"Size of random matrices(N=M=K): "<(randomMatSize*randomMatSize)*numConcurrentThreads*3*8)/static_cast(1024*1024)<<" MiB of RAM\n"< 1.0E-13){ std::cout<<"ERROR: one of the threads returned a different result!"<