OpenMP option

1 view
Skip to first unread message

Noriyuki Kushida

unread,
Oct 6, 2021, 3:42:04 AM10/6/21
to omni-c...@googlegroups.com
Dear developers,

This is a very minor issue, but it seems that xmpf90 automatically adds "-fomp" option to the native compiler command line, when it is invoked with "--omp".
The current "ifort" compiler uses a different one to enable OpenMP, and it may vary in the future again.
Do you think you can get the correct option with the "configure" script?
I understand that I can add the option (-qopenmp in my case) by myself, and there is no problem in practice.
This is just a matter of beauty.

--- sample error message ----
xmpf90 -c --omp --Wn"-O3 -march=core-avx2" variables.f90
ifort: command line warning #10006: ignoring unknown option '-fomp'
----------------------------------------

Best regards,
Noriyuki

Masahiro Nakao

unread,
Oct 6, 2021, 8:45:11 AM10/6/21
to omni-c...@googlegroups.com
Dear Noriyuki Kushida,

Thank you for your comment.
The OpenMP options for omni-compiler are "-omp" and "--openmp".
Other options are passed straight to the native compiler.
---
$ mpiifort -v
mpiifort for the Intel(R) MPI Library 2019 Update 5 for Linux*
Copyright 2003-2019, Intel Corporation.
ifort version 19.0.5.281

$ mpiifort --omp a.f90
ifort: command line warning #10006: ignoring unknown option '-fomp'
---
As shown above, omni-compiler works fine.

Please execute with the following command.
$ xmpf90 -c -omp --Wn"-O3 -march=core-avx2" variables.f90
or
$ xmpf90 -c --fopenmp --Wn"-O3 -march=core-avx2" variables.f90

Thanks,
> --
> You received this message because you are subscribed to the Google
> Groups "omni-compiler" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to omni-compile...@googlegroups.com
> <mailto:omni-compile...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/omni-compiler/CAKx-aKycWcvj-B0z-Vo4PqAJfdaV1OU9Q3dFCE-HbGP6--rRyQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/omni-compiler/CAKx-aKycWcvj-B0z-Vo4PqAJfdaV1OU9Q3dFCE-HbGP6--rRyQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
Masahiro NAKAO
Email : masahir...@riken.jp
RIKEN Center for Computational Science (R-CCS)

Noriyuki Kushida

unread,
Oct 6, 2021, 9:07:25 AM10/6/21
to Masahiro Nakao, omni-c...@googlegroups.com
Thank you very much for your explanation.
I was confused by the error message.

Noriyuki

To unsubscribe from this group and stop receiving emails from it, send an email to omni-compile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omni-compiler/d69867b1-777f-23c3-9395-d6f71ea968c4%40riken.jp.
Reply all
Reply to author
Forward
0 new messages