Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

mac ifort openmp

Barry_M_
Beginner
272 Views

The man for openmp has no description text, so has it been dropped or not working ?

ifort -qopenmp should work, or has the default operation changed ?

[mac27:~/test] bmcinnes% ifort -V

Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.4.181 Build 20170411
Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.

[mac27:~/test] bmcinnes% ifort -qopenmp hello.f
[mac27:~/test] bmcinnes% ./a.out
dyld: Library not loaded: @rpath/libiomp5.dylib
  Referenced from: /Volumes/User/bmcinnes/test/./a.out
  Reason: image not found
Abort
[mac27:~/test] bmcinnes% otool -L a.out
a.out:
    @rpath/libiomp5.dylib (compatibility version 5.0.0, current version 5.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
[mac27:~/test] bmcinnes% ifort -qopenmp-link=dynamic hello.f
[mac27:~/test] bmcinnes% ./a.out
 Hello
[mac27:~/test] bmcinnes% cat hello.f
      print *, "Hello"
      end
[mac27:~/test] bmcinnes% !ot
otool -L a.out
a.out:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
[mac27:~/test] bmcinnes%

0 Kudos
0 Replies
Reply