Problems:C++ and OpenMP

General OpenMP discussion

Problems:C++ and OpenMP

Postby huanganiu » Thu Dec 20, 2007 5:43 pm

(1)Can pointers be private or shared variables in diective using C++?
(2)Can do with array in reduction?
(3)Is reduction(+:P->a) correct? P is a calss object,a is a private variables of class.
thanks
huanganiu
 
Posts: 1
Joined: Thu Dec 20, 2007 5:24 pm

Re: Problems:C++ and OpenMP

Postby lfm » Tue Jan 15, 2008 9:07 am

huanganiu wrote:(1)Can pointers be private or shared variables in diective using C++?
(2)Can do with array in reduction?
(3)Is reduction(+:P->a) correct? P is a calss object,a is a private variables of class.
thanks

(1) Yes, pointers can be private or shared
(2)No, there are no array reductions in C/C++
(3)No, reductions can occur only on top-level objects.
lfm
 
Posts: 135
Joined: Sun Oct 21, 2007 4:58 pm
Location: OpenMP ARB


Return to Using OpenMP

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 9 guests