Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring

how to debug openmp program?

sun__lei
Beginner
472 Views

how to debug openmp program? For example, xx = bb; I use print("xx = %d bb = %d\n",xx,bb);  and the two value is the same. But when I insert a breakpoint after the "xx=bb" using gdb, the two value is not the same.

0 Kudos
1 Reply
Bernard
Black Belt
437 Views

Please consult a gdb documentation of multithreaded programs debugging.

https://sourceware.org/gdb/current/onlinedocs/gdb/Threads.html

Reply