- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am new to forum posting so excuse any mistakes.
I have some questions regarding thread-safe Fortran dlls.
A little context: I have a C++ program that is using OpenMP to make parallel calls to a Fortran dll.
The Fortran dll is made up of legacy code that is not thread-safe because it involves several modules. Since I am a newbie I thought I could easily make the dll thread-safe by adding the OpenMP THREADPRIVATE directive to all the variables in modules.
Module Test
REAL*8 x
!$OMP THREADPRIVATE(x)
End Module Test
After some testing I have seen that this does not work. I was wondering if anyone had advice.
Thanks,
J
Link Copied
0 Replies

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