|
|
|
@@ -5,6 +5,14 @@ inline void pauser(){ |
|
|
|
std::getline(std::cin, dummy); |
|
|
|
} |
|
|
|
|
|
|
|
void FailIfThreadsAreZero(uint32_t numConcurrentThreads) { |
|
|
|
if(numConcurrentThreads == 0) { |
|
|
|
std::cout<<"ERROR: Invalid parameter 0 for number of concurrent calls into OpenBLAS!"<<std::endl; |
|
|
|
std::cout<<"CBLAS DGEMV thread safety test FAILED!"<<std::endl; |
|
|
|
exit(-1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void FillMatrices(std::vector<std::vector<double>>& matBlock, std::mt19937_64& PRNG, std::uniform_real_distribution<double>& rngdist, const blasint randomMatSize, const uint32_t numConcurrentThreads, const uint32_t numMat){ |
|
|
|
for(uint32_t i=0; i<numMat; i++){ |
|
|
|
for(uint32_t j = 0; j < static_cast<uint32_t>(randomMatSize*randomMatSize); j++){ |
|
|
|
|