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

how to debug openmp program?

sun__lei
Beginner
825 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
Valued Contributor I
790 Views

Please consult a gdb documentation of multithreaded programs debugging.

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

0 Kudos
Reply