summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-01-22 03:42:53 -0500
committerJeffrey Walton <noloader@gmail.com>2019-01-22 03:42:53 -0500
commit8572541841898d88d36d2f8f275d8e8ed6a81a72 (patch)
tree42217c333a535ac8f7f8f12c02cd0445f292de8f /test.cpp
parent3f38a5f7ddcbaca60ee0bb8209dfe75d46bd959d (diff)
downloadcryptopp-git-8572541841898d88d36d2f8f275d8e8ed6a81a72.tar.gz
Use #pragma omp simd for OpenMP 3.0 compilers (GH #787)
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.cpp b/test.cpp
index 6ffd7e6e..8b970a22 100644
--- a/test.cpp
+++ b/test.cpp
@@ -547,7 +547,8 @@ void PrintSeedAndThreads()
tc = omp_get_num_threads();
}
- std::cout << "Using " << tc << " OMP " << (tc == 1 ? "thread" : "threads") << std::endl;
+ std::cout << "OpenMP version " << (int)_OPENMP << ", ";
+ std::cout << tc << (tc == 1 ? " thread" : "threads") << std::endl;
#endif
}