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)
|
ifeq ($(C_COMPILER), CLANG)
|
||||||
ISCLANG=1
|
ISCLANG=1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(C_COMPILER), FUJITSU)
|
||||||
|
ISCLANG=1
|
||||||
|
endif
|
||||||
ifneq (1, $(filter 1,$(GCCVERSIONGT4) $(ISCLANG)))
|
ifneq (1, $(filter 1,$(GCCVERSIONGT4) $(ISCLANG)))
|
||||||
CCOMMON_OPT += -march=armv8-a
|
CCOMMON_OPT += -march=armv8-a
|
||||||
ifneq ($(F_COMPILER), NAG)
|
ifneq ($(F_COMPILER), NAG)
|
||||||
|
|
2
c_check
2
c_check
|
@ -51,6 +51,7 @@ case "$data" in
|
||||||
*COMPILER_SUN*) compiler=SUN ;;
|
*COMPILER_SUN*) compiler=SUN ;;
|
||||||
*COMPILER_IBM*) compiler=IBM ;;
|
*COMPILER_IBM*) compiler=IBM ;;
|
||||||
*COMPILER_DEC*) compiler=DEC ;;
|
*COMPILER_DEC*) compiler=DEC ;;
|
||||||
|
*COMPILER_FUJITSU*) compiler=FUJITSU ;;
|
||||||
esac
|
esac
|
||||||
if [ -z "$compiler" ]; then
|
if [ -z "$compiler" ]; then
|
||||||
compiler=GCC
|
compiler=GCC
|
||||||
|
@ -143,6 +144,7 @@ case "$compiler" in
|
||||||
INTEL) openmp='-openmp' ;;
|
INTEL) openmp='-openmp' ;;
|
||||||
PATHSCALE|OPEN64) openmp='-mp' ;;
|
PATHSCALE|OPEN64) openmp='-mp' ;;
|
||||||
CLANG|GCC|LSB) openmp='-fopenmp' ;;
|
CLANG|GCC|LSB) openmp='-fopenmp' ;;
|
||||||
|
FUJITSU) openmp='-Kopenmp' ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$defined" -eq 0 ]; then
|
if [ "$defined" -eq 0 ]; then
|
||||||
|
|
|
@ -65,6 +65,7 @@ $compiler = OPEN64 if ($data =~ /COMPILER_OPEN64/);
|
||||||
$compiler = SUN if ($data =~ /COMPILER_SUN/);
|
$compiler = SUN if ($data =~ /COMPILER_SUN/);
|
||||||
$compiler = IBM if ($data =~ /COMPILER_IBM/);
|
$compiler = IBM if ($data =~ /COMPILER_IBM/);
|
||||||
$compiler = DEC if ($data =~ /COMPILER_DEC/);
|
$compiler = DEC if ($data =~ /COMPILER_DEC/);
|
||||||
|
$compiler = FUJITSU if ($data =~ /COMPILER_FUJITSU/);
|
||||||
$compiler = GCC if ($compiler eq "");
|
$compiler = GCC if ($compiler eq "");
|
||||||
|
|
||||||
$os = Linux if ($data =~ /OS_LINUX/);
|
$os = Linux if ($data =~ /OS_LINUX/);
|
||||||
|
@ -189,6 +190,10 @@ if ($compiler eq "GCC" || $compiler eq "LSB") {
|
||||||
$openmp = "-fopenmp";
|
$openmp = "-fopenmp";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($compiler eq "FUJITSU") {
|
||||||
|
$openmp = "-Kopenmp";
|
||||||
|
}
|
||||||
|
|
||||||
if ($defined == 0) {
|
if ($defined == 0) {
|
||||||
$compiler_name .= " -m32" if ($binary eq "32");
|
$compiler_name .= " -m32" if ($binary eq "32");
|
||||||
$compiler_name .= " -m64" if ($binary eq "64");
|
$compiler_name .= " -m64" if ($binary eq "64");
|
||||||
|
|
Loading…
Reference in New Issue