This commit is contained in:
lidanqing-intel 2020-09-27 08:35:26 +02:00
parent bfed1819a7
commit dbf777c294
1 changed files with 3 additions and 4 deletions

View File

@ -69,10 +69,8 @@ int main(int argc, char **argv) {
config.char_list_file); config.char_list_file);
#ifdef USE_MKL #ifdef USE_MKL
// test omp parallel
int i; int i;
std::cout << "...........Testing MKL......... " << omp_get_num_threads() std::cout << ">>>>>>>>>>>>>>> Testing MKL <<<<<<<<<<<<<<<<< " << std::endl;
<< std::endl;
#pragma omp parallel for private(i) #pragma omp parallel for private(i)
for (i = 0; i < 50; i++) { for (i = 0; i < 50; i++) {
std::cout << "omp_get_num_threads(): " << omp_get_num_threads() std::cout << "omp_get_num_threads(): " << omp_get_num_threads()
@ -80,7 +78,8 @@ int main(int argc, char **argv) {
int tid = omp_get_thread_num(); int tid = omp_get_thread_num();
std::cout << "Log from omp thread " << tid << std::endl; std::cout << "Log from omp thread " << tid << std::endl;
} }
std::cout << ">>>>>>>>>>>>>>> Testing MKL Finished <<<<<<<<<<<<<<<<< "
<< std::endl;
#endif #endif
auto start = std::chrono::system_clock::now(); auto start = std::chrono::system_clock::now();