GCC: OpenMP posix pthread

2012-02-19 Thread Erotavlas_turbo
Hi,

I'm starting to use Helgrind a tool of Valgrind. I read on the manual the 
following statement:
Runtime support library for GNU OpenMP (part of GCC), at least for GCC versions 
4.2 and 4.3. The GNU OpenMP runtime library (libgomp.so) constructs its own 
synchronisation primitives using combinations of atomic memory instructions and 
the futex syscall, which causes total chaos since in Helgrind since it cannot 
"see" those.

In the latest version of GCC, is this still true or now the OpenMP uses the 
standard POSIX pthread?

Thank you




Re: GCC: OpenMP posix pthread

2012-02-19 Thread Erotavlas_turbo
> On 2/19/2012 9:42 AM, erotavlas_tu...@libero.it wrote:
>
> > I'm starting to use Helgrind a tool of Valgrind. I read on the manual the 
> > following statement:
> > Runtime support library for GNU OpenMP (part of GCC), at least for GCC 
> > versions 4.2 and 4.3. The GNU OpenMP runtime library (libgomp.so) 
> > constructs its own synchronisation primitives using combinations of atomic 
> > memory instructions and the futex syscall, which causes total chaos since 
> > in Helgrind since it cannot "see" those.
> >
> > In the latest version of GCC, is this still true or now the OpenMP uses the 
> > standard POSIX pthread?
> >
>
> Do you have a specific OS family in mind?
>
>
> --
> Tim Prince
>

Yes, I'm talking about the UNIX OS (Linux, MacOSx). The tool valgrind is only 
available for these systems.


Salvatore Frandina




GCC and x86intrin.h header

2012-02-21 Thread Erotavlas_turbo
Hi,

I read in the manual of GCC the following line:
 // new intrinsic header file, it should be included before using 
any IA-32/x86-64 intrinsics.
What does it mean? I have to explicitly include this library in my code if I 
want to use the intrinsic functions like ssex or mcrc32 etc.

Thank you




Re: GCC: OpenMP posix pthread

2012-02-21 Thread Erotavlas_turbo
Nobody can answer to my question?

Thank you

Salvatore Frandina




Re: GCC: OpenMP posix pthread

2012-02-22 Thread Erotavlas_turbo
Hi,

thank you for your reply. So I cannot use the Helgrind tool without disabling 
the futexes. Do you know if exist a open source thread analyzer?

Thank you





Re: GCC: OpenMP posix pthread

2012-03-02 Thread Erotavlas_turbo
Hi,

I have found the solution i.e. the developers of GCC have found it. The latest 
version of GCC 4.6.3 can be used with Helgrind. See here for more detail 
http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug.html#debug.races


Best Regards

Salvatore




GCC optimization report

2012-07-17 Thread Erotavlas_turbo
Hi all,
I would like to know if GCC provides an option to get a detailed report on the 
optimization actually performed by the compiler. For example with the Intel C 
compiler it is possible using the -opt-report. I don't want to look at the 
assembly file and figure out the optimization.

Thank you
Best Regards

Salvatore
Frandina



GCC support of openACC

2012-12-04 Thread Erotavlas_turbo
Hi,

I would like to know if the next release of GCC will support the openACC 
directives. At the moment only commercial compilers support the openACC 
standard.

Thank you
Salvatore