Skip to content

Commit b61dca2

Browse files
committed
Locate omp.h
1 parent 7706b54 commit b61dca2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
run: |
9696
mkdir -p build
9797
cd build
98+
locate omp.h
9899
cmake .. \
99100
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
100101
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \

test/test_xcpp_kernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class XCppTests(jupyter_kernel_test.KernelTests):
131131
'mime': 'image/png'
132132
}
133133
]
134-
code_omp='#include <iostream>\n#include <omp.h>\n#include <clang/Interpreter/CppInterOp.h>\nCpp::LoadLibrary("libomp");int max_threads = omp_get_max_threads();omp_set_thread_num(max_threads);#pragma omp parallel \n{\nif(omp_get_thread_num()==2) std::cerr<<omp_get_thread_num()<<std::endl;}'
134+
code_omp='#include <iostream>\n#include <omp>\n#include <clang/Interpreter/CppInterOp.h>\nCpp::LoadLibrary("libomp");int max_threads = omp_get_max_threads();omp_set_thread_num(max_threads);#pragma omp parallel \n{\nif(omp_get_thread_num()==2) std::cerr<<omp_get_thread_num()<<std::endl;}'
135135
def test_xcpp_omp(self):
136136
self.flush_channels()
137137
reply, output_msgs = self.execute_helper(code=self.code_omp,timeout=1)

0 commit comments

Comments
 (0)