From 240fc229a69b44123d2da6aeea61c20d13345b6b Mon Sep 17 00:00:00 2001 From: thierry <thierry.gautier@inrialpes.fr> Date: Tue, 19 Oct 2021 08:56:08 +0200 Subject: [PATCH] Update --- openmp/test_master.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 openmp/test_master.cpp diff --git a/openmp/test_master.cpp b/openmp/test_master.cpp new file mode 100644 index 0000000..af06ee8 --- /dev/null +++ b/openmp/test_master.cpp @@ -0,0 +1,10 @@ +#include <omp.h> +#include <iostream> + +int main() +{ + std::cout << "I'm thread " << omp_get_thread_num() + << " in a group of " << omp_get_num_threads() + << " thread(s)" << std::endl; + return 0; +} -- GitLab