Skip to content

Commit 2cd8ad0

Browse files
committed
260125.183302.CST revise the compiler flags for ifx
1 parent fdf6737 commit 2cd8ad0

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/build_python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
if: ${{ runner.os == 'macOS' }}
5959
with:
6060
compiler: gcc
61-
version: 12
61+
version: 12 # Zaikun 20260125: 12 is a quite old version already. Why not the latest?
6262

6363
# Copied from https://github.com/scipy/scipy/blob/main/.github/workflows/wheels.yml
6464
# For rtools, see https://github.com/r-windows/rtools-installer/releases, which has been

fortran/tests/makefiles/Makefile.common

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ stest_i2_r16_d1_tst_c stest_i4_r16_d1_tst_c stest_i8_r16_d1_tst_c stest_i2_r16_d
703703

704704
# Intel ifx
705705
XFORT := ifx #-stand f$(FS)
706-
XFORT := $(XFORT) -warn all -debug extended -warn errors -traceback -debug-parameters all #-diag-error-limit 1
706+
XFORT := $(XFORT) -warn all -debug full -warn errors -traceback -debug-parameters all #-diag-error-limit 1
707707
# `-auto` causes all local, non-SAVEd variables to be allocated to the run-time stack.
708708
# `-no-heap-arrays`, which is the default for `ifort`, causes the compiler puts automatic arrays
709709
# and temporary arrays in the stack storage area. We enable them for small problems to verify that
@@ -718,44 +718,38 @@ ifeq ($(TESTDIM),small)
718718
else
719719
XFORT := $(XFORT) -auto -heap-arrays
720720
endif
721-
XFORT := $(XFORT) -fimplicit-none -standard-semantics -assume recursion
721+
XFORT := $(XFORT) -standard-semantics -assume recursion
722722
ifeq ($(OSTYPE),LINUX)
723723
XFORT := $(XFORT) -Wl,-z,noexecstack
724724
endif
725725

726726
# In the following, `-check all,nouninit` can be changed to `-check all` later, probably with OneAPI 2024.1. See
727727
# https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-missing-clang-rt-msan-to-link-Fortran-program-in-debug-build/m-p/1533430
728728
xtest_i2_r4_d1_tst_c xtest_i4_r4_d1_tst_c xtest_i8_r4_d1_tst_c xtest_i2_r4_d0_tst_c xtest_i4_r4_d0_tst_c xtest_i8_r4_d0_tst_c: \
729-
FCO := $(XFORT) $(FFLAGSO) -fp-trap=divzero
729+
FCO := $(XFORT) $(FFLAGSO)
730730
xtest_i2_r4_d1_tst_c xtest_i4_r4_d1_tst_c xtest_i8_r4_d1_tst_c xtest_i2_r4_d0_tst_c xtest_i4_r4_d0_tst_c xtest_i8_r4_d0_tst_c: \
731-
FCG := $(XFORT) $(FFLAGSG) -check all,nouninit -fp-trap=divzero
731+
FCG := $(XFORT) $(FFLAGSG) -check all,nouninit
732732
xtest_i2_r4_d1_tst_c xtest_i4_r4_d1_tst_c xtest_i8_r4_d1_tst_c xtest_i2_r4_d0_tst_c xtest_i4_r4_d0_tst_c xtest_i8_r4_d0_tst_c: \
733-
FCF := $(XFORT) -fp-trap=divzero $(XFF)
733+
FCF := $(XFORT) $(XFF)
734734

735735
xtest_i2_r8_d1_tst_c xtest_i4_r8_d1_tst_c xtest_i8_r8_d1_tst_c xtest_i2_r8_d0_tst_c xtest_i4_r8_d0_tst_c xtest_i8_r8_d0_tst_c: \
736736
FCO := $(XFORT) $(FFLAGSO) -ftrapuv -fpe0 -fpe-all=0 -assume ieee_fpe_flags \
737-
-fp-trap=divzero,overflow#invalid,underflow,denormal
738737
#-no-ftz
739738
xtest_i2_r8_d1_tst_c xtest_i4_r8_d1_tst_c xtest_i8_r8_d1_tst_c xtest_i2_r8_d0_tst_c xtest_i4_r8_d0_tst_c xtest_i8_r8_d0_tst_c: \
740739
FCG := $(XFORT) $(FFLAGSG) -check all,nouninit -ftrapuv -fpe0 -fpe-all=0 -assume ieee_fpe_flags \
741-
-fp-trap=divzero,overflow#invalid,underflow,denormal
742740
#-no-ftz
743741
xtest_i2_r8_d1_tst_c xtest_i4_r8_d1_tst_c xtest_i8_r8_d1_tst_c xtest_i2_r8_d0_tst_c xtest_i4_r8_d0_tst_c xtest_i8_r8_d0_tst_c: \
744-
FCF := $(XFORT) -ftrapuv -fpe0 -fpe-all=0 -assume ieee_fpe_flags \
745-
-fp-trap=divzero,overflow $(XFF)
742+
FCF := $(XFORT) -ftrapuv -fpe0 -fpe-all=0 -assume ieee_fpe_flags $(XFF)
746743

747744

748745
xtest_i2_r16_d1_tst_c xtest_i4_r16_d1_tst_c xtest_i8_r16_d1_tst_c xtest_i2_r16_d0_tst_c xtest_i4_r16_d0_tst_c xtest_i8_r16_d0_tst_c: \
749746
FCO := $(XFORT) $(FFLAGSO) -ftrapuv -fpe0 -fpe-all=0 -assume ieee_fpe_flags \
750-
-fp-trap=divzero,overflow#invalid,underflow,denormal
751747
#-no-ftz
752748
xtest_i2_r16_d1_tst_c xtest_i4_r16_d1_tst_c xtest_i8_r16_d1_tst_c xtest_i2_r16_d0_tst_c xtest_i4_r16_d0_tst_c xtest_i8_r16_d0_tst_c: \
753749
FCG := $(XFORT) $(FFLAGSG) -check all,nouninit -ftrapuv -fpe0 -fpe-all=0 -assume ieee_fpe_flags \
754-
-fp-trap=divzero,overflow#invalid,underflow,denormal
755750
#-no-ftz
756751
xtest_i2_r16_d1_tst_c xtest_i4_r16_d1_tst_c xtest_i8_r16_d1_tst_c xtest_i2_r16_d0_tst_c xtest_i4_r16_d0_tst_c xtest_i8_r16_d0_tst_c: \
757-
FCF := $(XFORT) -ftrapuv -fpe0 -fpe-all=0 -assume ieee_fpe_flags \
758-
-fp-trap=divzero,overflow $(XFF)
752+
FCF := $(XFORT) -ftrapuv -fpe0 -fpe-all=0 -assume ieee_fpe_flags $(XFF)
759753

760754

761755
# G95

0 commit comments

Comments
 (0)