- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page