Skip to content

Commit

Permalink
(build) fix ifort issue with newer compiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljprice committed Dec 20, 2023
1 parent 2113b41 commit 98a4cd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/Makefile_defaults_ifort
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ KNOWN_SYSTEM=yes

# for ifort version 18+ -openmp flag is obsolete
IFORT_VERSION_MAJOR=${shell ifort -v 2>&1 | head -1 | cut -d' ' -f 3 | cut -d'.' -f 1}
ifeq ($(shell [ $(IFORT_VERSION_MAJOR) -gt 17 ] && echo true),true)
OMPFLAGS= -qopenmp
ifeq ($(shell [ $(IFORT_VERSION_MAJOR) -lt 17 ] && echo true),true)
OMPFLAGS= -openmp
else
OMPFLAGS = -openmp
OMPFLAGS = -qopenmp
endif

0 comments on commit 98a4cd0

Please sign in to comment.