Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Use omp_lib for x64 compiling

$
0
0

Steve, Colleagues,

I  have successfully used OpenMP to create a threaded IA32 version of an executable. The code contains "use omp_lib" since I'm calling a few OpenMP functions.  I note that in the Project Property Pages the "Additional Include Directories" is blank in for both WIN32 and x64 OS targets. Before the current attempt to thread the code, I have been producing IA32 and x64 versions of executables from the same source; I have simply changed the target OS; it has not been necessary to explicitly point to different library places.

Now, with the threaded code, if I do nothing but change target OS from WIN32 to x64 (using the drop-down in VS 2010), then the OpenMP library is not found and I get the following message:

error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [OMP_LIB]

I am using VS 2010, and the lasted compiler: XE 14.0.3.202

BTW: if I comment out the "use omp_lib" line of code, I get no error message(s) but neither the compiler nor linker note that incorrect code is being generated. Jim Dempsey has commented on this before in this forum.

Suggestions?

David


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>