Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored May 21, 2024
1 parent ea8a8d3 commit 1e04494
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/test_xcpp_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,16 @@ class XCppTests(jupyter_kernel_test.KernelTests):
#include <omp.h>
#include <iostream>
#include <clang/Interpreter/CppInterOp.h>
if(Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/lib/libomp.so")) {
if(Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/lib/libomp")) {
int max_threads = omp_get_max_threads();
omp_set_thread_num(max_threads);
std::cerr<<"OpenMP library loaded"<<std::endl;
#pragma omp parallel
{
if(omp_get_thread_num()==2) {
std::cerr<<omp_get_thread_num()<<std::endl;
}
}
}
else
{
std::cerr<<"OpenMP library not loaded"<<std::endl;
Expand Down

0 comments on commit 1e04494

Please sign in to comment.