Skip to content

Commit 37a92bd

Browse files
committed
Debug
1 parent 87ad104 commit 37a92bd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/test_xcpp_kernel.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,16 @@ class XCppTests(jupyter_kernel_test.KernelTests):
135135
#include <omp.h>
136136
#include <iostream>
137137
#include <clang/Interpreter/CppInterOp.h>
138-
if(Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/lib/libomp.so")) {
138+
if(Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/lib/libomp")) {
139139
int max_threads = omp_get_max_threads();
140140
omp_set_thread_num(max_threads);
141-
std::cerr<<"OpenMP library loaded"<<std::endl;
141+
#pragma omp parallel
142+
{
143+
if(omp_get_thread_num()==2) {
144+
std::cerr<<omp_get_thread_num()<<std::endl;
145+
}
146+
}
147+
}
142148
else
143149
{
144150
std::cerr<<"OpenMP library not loaded"<<std::endl;

0 commit comments

Comments
 (0)