File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ macro(xeus_cpp_create_target target_name linkage output_name)
314
314
set (XEUS_CPP_XEUS_TARGET xeus-static )
315
315
endif ()
316
316
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 )
318
318
319
319
if (WIN32 OR CYGWIN )
320
320
#
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ class XCppTests(jupyter_kernel_test.KernelTests):
131
131
'mime' : 'image/png'
132
132
}
133
133
]
134
- code_omp = '#include <iostream >\n #include <omp >\n #include <clang/Interpreter/CppInterOp.h>\n Cpp::LoadLibrary("libomp");int max_threads = omp_get_max_threads();omp_set_thread_num(max_threads);#pragma omp parallel \n {\n if(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 Cpp::LoadLibrary("libomp");int max_threads = omp_get_max_threads();omp_set_thread_num(max_threads);#pragma omp parallel \n {\n if(omp_get_thread_num()==2) std::cerr<<omp_get_thread_num()<<std::endl;}'
135
135
def test_xcpp_omp (self ):
136
136
self .flush_channels ()
137
137
reply , output_msgs = self .execute_helper (code = self .code_omp ,timeout = 1 )
You can’t perform that action at this time.
0 commit comments