Skip to content

Commit 8f33899

Browse files
committed
Debug
1 parent 5d23bc2 commit 8f33899

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

test/test_xcpp_kernel.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,7 @@ class XCppTests(jupyter_kernel_test.KernelTests):
136136
#include <iostream>
137137
#include <clang/Interpreter/CppInterOp.h>
138138
bool library_loaded=Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/libomp.so");
139-
if(library_loaded) {
140-
int max_threads = omp_get_max_threads();
141-
omp_set_thread_num(max_threads);
142-
#pragma omp parallel
143-
{
144-
if(omp_get_thread_num()==2) {
145-
std::cerr<<omp_get_thread_num()<<std::endl;
146-
}
147-
}
148-
}
149-
else
150-
{
151-
std::cerr<<"OpenMP library not loaded"<<std::endl;
152-
}
139+
std::cerr<<library_loaded<<std::endl;
153140
"""
154141
def test_xcpp_omp(self):
155142
self.flush_channels()

0 commit comments

Comments
 (0)