Skip to content

Commit

Permalink
Intel has deprecated -fopenmp in favour of -fiopenmp
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84711 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Jul 19, 2023
1 parent 9b6559b commit fa1371e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -26593,7 +26593,7 @@ then :
ac_cv_prog_c_openmp='none needed'
else $as_nop
ac_cv_prog_c_openmp='unsupported'
for ac_option in -xopenmp -fopenmp -qopenmp \
for ac_option in -xopenmp -fiopenmp -fopenmp -qopenmp \
-openmp -mp -omp -qsmp=omp -homp \
-fopenmp=libomp \
-Popenmp --openmp; do
Expand Down Expand Up @@ -28090,7 +28090,7 @@ then :
ac_cv_prog_fc_openmp='none needed'
else $as_nop
ac_cv_prog_fc_openmp='unsupported'
for ac_option in -xopenmp -fopenmp -qopenmp \
for ac_option in -xopenmp -fiopenmp -fopenmp -qopenmp \
-openmp -mp -omp -qsmp=omp -homp \
-fopenmp=libomp \
-Popenmp --openmp; do
Expand Down Expand Up @@ -42704,7 +42704,7 @@ then :
ac_cv_prog_cxx_openmp='none needed'
else $as_nop
ac_cv_prog_cxx_openmp='unsupported'
for ac_option in -xopenmp -fopenmp -qopenmp \
for ac_option in -xopenmp -fiopenmp -fopenmp -qopenmp \
-openmp -mp -omp -qsmp=omp -homp \
-fopenmp=libomp \
-Popenmp --openmp; do
Expand Down Expand Up @@ -53754,7 +53754,7 @@ then :
ac_cv_prog_fc_openmp='none needed'
else $as_nop
ac_cv_prog_fc_openmp='unsupported'
for ac_option in -xopenmp -fopenmp -qopenmp \
for ac_option in -xopenmp -fiopenmp -fopenmp -qopenmp \
-openmp -mp -omp -qsmp=omp -homp \
-fopenmp=libomp \
-Popenmp --openmp; do
Expand Down
6 changes: 4 additions & 2 deletions m4/openmp.m4
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is part of Autoconf. -*- Autoconf -*-
# Programming languages support.
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
# Copyright (C) 2015-2018 R Core Team
# Copyright (C) 2015-2023 R Core Team

# This file is part of Autoconf. This program is free
# software; you can redistribute it and/or modify it under the
Expand Down Expand Up @@ -29,6 +29,7 @@
# Roland McGrath, Noah Friedman, david d zuhn, and many others.

# [a small part, modified for clang and Intel in 2015,6, Solaris in 2017.]
# [Change for Intel preferring -fiopenmp and deprecating -fopenmp in 2023.]

# _AC_LANG_OPENMP is a language-dependent program defined in c.m4 in
# the autoconf library.
Expand Down Expand Up @@ -65,6 +66,7 @@ AC_DEFUN([R_OPENMP],
dnl Intel -openmp (deprecated)
dnl (https://software.intel.com/en-us/node/581863,
dnl https://software.intel.com/en-us/node/525020)
dnl 2023 Intel: prefers -fiopenmp
dnl SGI C, PGI C -mp
dnl Tru64 Compaq C -omp
dnl IBM C (AIX, Linux) -qsmp=omp
Expand All @@ -78,7 +80,7 @@ AC_DEFUN([R_OPENMP],
dnl therefore the loop will continue searching for an option, and
dnl no output file called 'penmp' or 'mp' is created.
dnl Sept 2017: Solaris needs -xopenmp before -fopenmp
for ac_option in -xopenmp -fopenmp -qopenmp \
for ac_option in -xopenmp -fiopenmp -fopenmp -qopenmp \
-openmp -mp -omp -qsmp=omp -homp \
-fopenmp=libomp \
-Popenmp --openmp; do
Expand Down

0 comments on commit fa1371e

Please sign in to comment.