Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Beginner
143 Views

how to debug openmp program?

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
Black Belt
108 Views

Please consult a gdb documentation of multithreaded programs debugging.

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

0 Kudos