We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87ad104 commit 37a92bdCopy full SHA for 37a92bd
test/test_xcpp_kernel.py
@@ -135,10 +135,16 @@ class XCppTests(jupyter_kernel_test.KernelTests):
135
#include <omp.h>
136
#include <iostream>
137
#include <clang/Interpreter/CppInterOp.h>
138
- if(Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/lib/libomp.so")) {
+ if(Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/lib/libomp")) {
139
int max_threads = omp_get_max_threads();
140
omp_set_thread_num(max_threads);
141
- std::cerr<<"OpenMP library loaded"<<std::endl;
+ #pragma omp parallel
142
+ {
143
+ if(omp_get_thread_num()==2) {
144
+ std::cerr<<omp_get_thread_num()<<std::endl;
145
+ }
146
147
148
else
149
{
150
std::cerr<<"OpenMP library not loaded"<<std::endl;
0 commit comments