File tree 2 files changed +15
-2
lines changed 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 95
95
run : |
96
96
mkdir -p build
97
97
cd build
98
- find $CONDA_PREFIX/include/
98
+ find $CONDA_PREFIX
99
99
cmake .. \
100
100
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
101
101
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
Original file line number Diff line number Diff line change @@ -135,7 +135,20 @@ class XCppTests(jupyter_kernel_test.KernelTests):
135
135
#include <omp.h>
136
136
#include <iostream>
137
137
#include <clang/Interpreter/CppInterOp.h>
138
- std::cerr<<Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/libomp.so")<<std::endl;
138
+ if(Cpp::LoadLibrary("/home/runner/micromamba/envs/xeus-cpp/libomp.so")) {
139
+ int max_threads = omp_get_max_threads();
140
+ omp_set_thread_num(max_threads);
141
+ #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;
151
+ }
139
152
"""
140
153
def test_xcpp_omp (self ):
141
154
self .flush_channels ()
You can’t perform that action at this time.
0 commit comments