Skip to content

Commit 5b05cd6

Browse files
committed
Check it can find omp.h
1 parent dc40f07 commit 5b05cd6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

share/jupyter/kernels/xcpp20-omp/kernel.json.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"@XEUS_CPP_KERNELSPEC_PATH@xcpp",
1010
"-f",
1111
"{connection_file}",
12-
"-resource-dir@XEUS_CPP_RESOURCE_DIR@",
13-
"-I@XEUS_CPP_INCLUDE_DIR@",
12+
"-resource-dir", "@XEUS_CPP_RESOURCE_DIR@",
13+
"-I", "@XEUS_CPP_INCLUDE_DIR@",
1414
"-std=c++20","@XEUS_CPP_OMP@"
1515
],
1616
"language": "cpp",

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 <omp.h>\n#include <iostream>\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 <omp.h>\n#include <iostream>\n#include <clang/Interpreter/CppInterOp.h>\n'
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)