Browse Source

Merge pull request #3699 from martin-frbg/issue3692

Add c_check recognition of Fujitsu fcc for Fugaku A64FX
tags/v0.3.21
Martin Kroeker GitHub 3 years ago
parent
commit
cf796aee8c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 0 deletions
  1. +3
    -0
      Makefile.arm64
  2. +2
    -0
      c_check
  3. +5
    -0
      c_check.pl
  4. +4
    -0
      ctest.c

+ 3
- 0
Makefile.arm64 View File

@@ -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
- 0
c_check View File

@@ -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


+ 5
- 0
c_check.pl View File

@@ -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");


+ 4
- 0
ctest.c View File

@@ -44,6 +44,10 @@ COMPILER_DEC
COMPILER_GNU
#endif

#if defined(__fcc_version__) || defined(__FCC_version__)
COMPILER_FUJITSU
#endif

#if defined(__ANDROID__)
OS_ANDROID
#endif


Loading…
Cancel
Save