Measuring the Timing of Each Thread in a Parallel Construct

General OpenMP discussion

Measuring the Timing of Each Thread in a Parallel Construct

Postby Dragan » Wed Jun 18, 2008 7:32 am

Hi,
I'm trying to measure the processing time of the operation of each thread in a parallel construct. I was wondering if this can be accomplished using the omp_get_wtime(). Does anyone know how I would time the start and the stop of each of the thread process? Could the operation of the function interfere with the performance of the task at hand? I was using simple programs that used printf statments so I couldn't really see any difference.


Thanks,

Dragan
Dragan
 
Posts: 2
Joined: Fri Jun 13, 2008 12:36 pm

Re: Measuring the Timing of Each Thread in a Parallel Construct

Postby ejd » Wed Jun 18, 2008 8:02 am

It sounds like you are trying to profile your application. omp_get_wtime is not going to help you on a per thread basis, since it returns elapsed wall clock time. What you need to use is a profiler. Depending on the compiler and operating system you are doing this on, there are several possibilities.
ejd
 
Posts: 1025
Joined: Wed Jan 16, 2008 7:21 am

Re: Measuring the Timing of Each Thread in a Parallel Construct

Postby Dragan » Wed Jun 18, 2008 8:33 am

I'm using gcc 4.4, with a MAC OS (Unix).

thanks,

Dragan
Dragan
 
Posts: 2
Joined: Fri Jun 13, 2008 12:36 pm


Return to Using OpenMP

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron