Merge pull request #3699 from martin-frbg/issue3692
Add c_check recognition of Fujitsu fcc for Fugaku A64FX
This commit is contained in:
commit
cf796aee8c
|
@ -3,6 +3,9 @@ ifneq ($(C_COMPILER), PGI)
|
|||
ifeq ($(C_COMPILER), CLANG)
|
||||
ISCLANG=1
|
||||
endif
|
||||
ifeq ($(C_COMPILER), FUJITSU)
|
||||
ISCLANG=1
|
||||
endif
|
||||
ifneq (1, $(filter 1,$(GCCVERSIONGT4) $(ISCLANG)))
|
||||
CCOMMON_OPT += -march=armv8-a
|
||||
ifneq ($(F_COMPILER), NAG)
|
||||
|
|
2
c_check
2
c_check
|
@ -51,6 +51,7 @@ case "$data" in
|
|||
*COMPILER_SUN*) compiler=SUN ;;
|
||||
*COMPILER_IBM*) compiler=IBM ;;
|
||||
*COMPILER_DEC*) compiler=DEC ;;
|
||||
*COMPILER_FUJITSU*) compiler=FUJITSU ;;
|
||||
esac
|
||||
if [ -z "$compiler" ]; then
|
||||
compiler=GCC
|
||||
|
@ -143,6 +144,7 @@ case "$compiler" in
|
|||
INTEL) openmp='-openmp' ;;
|
||||
PATHSCALE|OPEN64) openmp='-mp' ;;
|
||||
CLANG|GCC|LSB) openmp='-fopenmp' ;;
|
||||
FUJITSU) openmp='-Kopenmp' ;;
|
||||
esac
|
||||
|
||||
if [ "$defined" -eq 0 ]; then
|
||||
|
|
|
@ -65,6 +65,7 @@ $compiler = OPEN64 if ($data =~ /COMPILER_OPEN64/);
|
|||
$compiler = SUN if ($data =~ /COMPILER_SUN/);
|
||||
$compiler = IBM if ($data =~ /COMPILER_IBM/);
|
||||
$compiler = DEC if ($data =~ /COMPILER_DEC/);
|
||||
$compiler = FUJITSU if ($data =~ /COMPILER_FUJITSU/);
|
||||
$compiler = GCC if ($compiler eq "");
|
||||
|
||||
$os = Linux if ($data =~ /OS_LINUX/);
|
||||
|
@ -189,6 +190,10 @@ if ($compiler eq "GCC" || $compiler eq "LSB") {
|
|||
$openmp = "-fopenmp";
|
||||
}
|
||||
|
||||
if ($compiler eq "FUJITSU") {
|
||||
$openmp = "-Kopenmp";
|
||||
}
|
||||
|
||||
if ($defined == 0) {
|
||||
$compiler_name .= " -m32" if ($binary eq "32");
|
||||
$compiler_name .= " -m64" if ($binary eq "64");
|
||||
|
|
Loading…
Reference in New Issue