@@ -239,18 +239,7 @@ class BaseXCppOpenMPTests(jupyter_kernel_test.KernelTests):
239239 #include <clang/Interpreter/CppInterOp.h>
240240 Cpp::LoadLibrary("libomp");
241241 int main() {
242- int max_threads = omp_get_max_threads();
243-
244- printf("max threads: %d\n ", max_threads);
245- omp_set_num_threads(max_threads);
246-
247- #pragma omp parallel
248- {
249- int id = omp_get_thread_num();
250- printf("Hello World from thread = %d with %d threads\n ", id, omp_get_num_threads());
251- }
252-
253- printf("all done, with hopefully %d threads\n ", max_threads);
242+ printf("all done, with hopefully threads\n ");
254243 }
255244 main();
256245 """
@@ -260,18 +249,6 @@ def test_xcpp_omp(self):
260249 reply , output_msgs = self .execute_helper (code = self .code_omp ,timeout = 20 )
261250 self .assertEqual (output_msgs [0 ]['content' ]['name' ], 'stdout' )
262251
263- code_omp = """
264- #include <omp.h>
265- #include <iostream>
266- #include <clang/Interpreter/CppInterOp.h>
267- """
268- def test_xcpp_omp_2 (self ):
269- self .flush_channels ()
270- reply , output_msgs = self .execute_helper (code = self .code_omp ,timeout = 20 )
271- self .assertEqual (output_msgs [0 ]['msg_type' ], 'stream' )
272- self .assertEqual (output_msgs [0 ]['content' ]['name' ], 'stderr' )
273- self .assertEqual (output_msgs [0 ]['content' ]['text' ], '2' )
274-
275252 kernel_names = ['xcpp17-omp' , 'xcpp20-omp' , 'xcpp23-omp' ]
276253
277254 for name in kernel_names :
0 commit comments