OpenMP - Calling Functions

OpenMP - Calling Functions

Hello,

I am trying to call a function (REAL*8) within OpenMP constructs. It throws Access Violation (157) in the first execution line of the function. I suspect it could be due to access of same variable/memory address by all threads, but not sure. Does the function needs any special treatment or declaration to be called within parallel !$OMP constructs? Please help.

 

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Access violation usually is the result of a bad argument. Can you provide your function and your call?

Examples:

No interface and call with missing arg, (junk) arg dereferenced.
Call FORTRAN function from C with wrong calling convention and/or args.
Entering a parallel region with unallocated PRIVATE(array)

Jim Dempsey

www.quickthreadprogramming.com

Leave a Comment

Please sign in to add a comment. Not a member? Join today