Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: Using exter...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 21 of 23 Topic 8180 of 8767
Post > Topic >>

Re: Using external subroutines in OpenMP?

by jomarbueyes@[EMAIL PROTECTED] Apr 28, 2008 at 03:21 PM

On Apr 28, 11:57 am, Tobias Burnus <bur...@[EMAIL PROTECTED]
> wrote:
> On Apr 28, 6:26 pm, jomarbue...@[EMAIL PROTECTED]
 wrote:
>
> > > > In the parallel ****tion, I tried making private copies of the
array
> > > > that the subroutines change. I also tried making private copies of
all
> > > > arrays the subroutines use. Neither approach worked.
>
> Sometimes compiler decide to use static memory for local variables in
> subroutines. You could try to mark those subroutines as RECURSIVE.
>
> In gfortran -fopenmp implies -frecursive, without the latter option,
> larger local arrays might end up in static memory (rather than on the
> stack), which can cause the problems [cf. -fmax-stack-var-size].
>
> I think most if not all compilers don't use static local variables
> when OpenMP is enabled. However, I believe you compiled the netlib
> libraries without -fopenmp (ifort: -openmp). Thus you should recompile
> those libraries with -frecursive (ifort: -recursive) or you mark the
> subroutines of interest as RECURSIVE and recompile.
>
> If this does not help or you already compiled the libraries with the
> needed options: Good luck at finding the true cause of the problem.
>
> Tobias

Dear Tobias,

Thank you for your response. It seems that you hit the nail in the
head. I re-made the libraries using the -recursive flag and the
program no longer crashes or hangs in the subroutine were I found the
problem. Thus far it seems that the combination or making all the
arrays shared but giving each threads a column of the array and using
the "-recursive" flag works. I have another subroutine that still uses
a private array and it still crashes. I'll modify that second
subroutine in the way I did the first.

Thanks again,

Jomar
 




 23 Posts in Topic:
Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-25 18:36:24 
Re: Using external subroutines in OpenMP?
Reinhold Bader <Bader@  2008-04-26 11:26:33 
Re: Using external subroutines in OpenMP?
Sebastian Hanigk <hani  2008-04-26 13:12:32 
Re: Using external subroutines in OpenMP?
glen herrmannsfeldt <g  2008-04-26 09:01:53 
Re: Using external subroutines in OpenMP?
Sebastian Hanigk <hani  2008-04-26 19:29:05 
Re: Using external subroutines in OpenMP?
Charles Coldwell <cold  2008-04-27 11:27:29 
Re: Using external subroutines in OpenMP?
Sebastian Hanigk <hani  2008-04-27 17:45:31 
Re: Using external subroutines in OpenMP?
Charles Coldwell <cold  2008-04-27 22:26:50 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-26 22:25:35 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-26 22:36:54 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-26 22:44:18 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-27 07:53:59 
Re: Using external subroutines in OpenMP?
Sebastian Hanigk <hani  2008-04-27 17:38:32 
Re: Using external subroutines in OpenMP?
Charles Coldwell <cold  2008-04-27 22:14:11 
Re: Using external subroutines in OpenMP?
"James Van Buskirk&q  2008-04-27 17:04:45 
Re: Using external subroutines in OpenMP?
Charles Coldwell <cold  2008-04-28 11:19:45 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-28 08:47:32 
Re: Using external subroutines in OpenMP?
Charles Coldwell <cold  2008-04-29 12:08:17 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-28 09:26:26 
Re: Using external subroutines in OpenMP?
Tobias Burnus <burnus@  2008-04-28 09:57:56 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-28 15:21:19 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-28 19:34:56 
Re: Using external subroutines in OpenMP?
jomarbueyes@[EMAIL PROTEC  2008-04-29 07:46:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:41:27 CDT 2008.