Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-user] Eclipse PTP : debugging with OpenMP and switching between threads

Hello,

I use Ubuntu 11.10 and my version of Eclipse is : Eclipse IDE for Parallel Application Developers, Version: Indigo Service Release 1, Build id: 20110916-0149.

I am new to Eclipse. I created a makefile project (with debug flag : g++ -g -openmp) to compile an OpenMP program : compiling is OK (and run outside eclipse in an xterm is OK).
I have 2 questions about running / debugging OpenMP in Eclipse :
  1. To run a simple OpenMP project, am I supposed to create a "local" or a "parallel" application configuration ? My understanding is that when using only OpenMP (as I do here) local configuration are the one to use, but, when using both OpenMPI + OpenMP parallel configuration are the one to use (because of MPI). Am I right ? If not, which kind of resource manager should be created to handle OpenMP (I have no OpenMP resource manager available) ?
  2. When debugging a simple OpenMP project, is possible to switch between threads (at the same time, current line code may not be the same for each thread) ? I believed it could be possible to follow OpenMP threads in the same way that it is possible to follow OpenMPI processus : is this possible ? As point 1 mentions it, I use a local configuration and -g when compiling to enable accessing thread stack : when debugging I see the 4 threads of my PC but I can only access the main thread (see attached pictures - threads 2 and 3 behave like thread 4 : impossible to access any level of the thread stack)


Regards,


FH

Attachment: DebugThread1.png
Description: PNG image

Attachment: DebugThread4.png
Description: PNG image


Back to the top