Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

OpenMP - Calling Functions

mohanmuthu
New Contributor I
460 Views

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.

 

0 Kudos
1 Reply
jimdempseyatthecove
Honored Contributor III
460 Views

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

0 Kudos
Reply