diff --git a/openmp/test_master.cpp b/openmp/test_master.cpp new file mode 100644 index 0000000000000000000000000000000000000000..af06ee8343f0bb836a27ba1f9c43030c8e728228 --- /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; +}