Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

how to debug openmp program?

sun__lei
Beginner
381 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
346 Views

Please consult a gdb documentation of multithreaded programs debugging.

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

Reply