Skip to content

Commit b185b98

Browse files
committed
Use <omp.h> instead of <omp>
1 parent e8727a7 commit b185b98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ macro(xeus_cpp_create_target target_name linkage output_name)
314314
set(XEUS_CPP_XEUS_TARGET xeus-static)
315315
endif ()
316316

317-
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse xtl OpenMP::OpenMP_CXX)
317+
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse xtl)
318318

319319
if (WIN32 OR CYGWIN)
320320
#

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>\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>\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)