Makefile fixes related to C_LAPACK, plus Travis CI fixestags/v0.3.21
| @@ -25,7 +25,8 @@ matrix: | |||||
| # - BTYPE="BINARY=64" | # - BTYPE="BINARY=64" | ||||
| # | # | ||||
| # - <<: *test-ubuntu | # - <<: *test-ubuntu | ||||
| os: linux-ppc64le | |||||
| os: linux | |||||
| arch: ppc64le | |||||
| before_script: &common-before | before_script: &common-before | ||||
| - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=POWER8 NUM_THREADS=32" | - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=POWER8 NUM_THREADS=32" | ||||
| script: | script: | ||||
| @@ -43,6 +44,7 @@ matrix: | |||||
| arch: s390x | arch: s390x | ||||
| before_script: | before_script: | ||||
| - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=Z13 NUM_THREADS=32" | - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=Z13 NUM_THREADS=32" | ||||
| - sudo apt-get install --only-upgrade binutils | |||||
| env: | env: | ||||
| # for matrix annotation only | # for matrix annotation only | ||||
| - TARGET_BOX=IBMZ_LINUX | - TARGET_BOX=IBMZ_LINUX | ||||
| @@ -55,6 +57,7 @@ matrix: | |||||
| compiler: clang | compiler: clang | ||||
| before_script: | before_script: | ||||
| - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=Z13 NUM_THREADS=32" | - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=Z13 NUM_THREADS=32" | ||||
| - sudo apt-get install --only-upgrade binutils | |||||
| env: | env: | ||||
| # for matrix annotation only | # for matrix annotation only | ||||
| - TARGET_BOX=IBMZ_LINUX | - TARGET_BOX=IBMZ_LINUX | ||||
| @@ -269,9 +272,9 @@ matrix: | |||||
| # - CFLAGS="-O2 -mno-thumb -Wno-macro-redefined -isysroot /Applications/Xcode-11.5.GM.Seed.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -arch armv7 -miphoneos-version-min=5.1" | # - CFLAGS="-O2 -mno-thumb -Wno-macro-redefined -isysroot /Applications/Xcode-11.5.GM.Seed.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -arch armv7 -miphoneos-version-min=5.1" | ||||
| # - BTYPE="TARGET=ARMV7 HOSTCC=clang NOFORTRAN=1" | # - BTYPE="TARGET=ARMV7 HOSTCC=clang NOFORTRAN=1" | ||||
| - &test-graviton2 | |||||
| - &test-neoversen1 | |||||
| os: linux | os: linux | ||||
| arch: arm64-graviton2 | |||||
| arch: arm64 | |||||
| dist: focal | dist: focal | ||||
| group: edge | group: edge | ||||
| virt: lxd | virt: lxd | ||||
| @@ -163,7 +163,7 @@ ifeq ($(CORE), UNKNOWN) | |||||
| $(error OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.) | $(error OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.) | ||||
| endif | endif | ||||
| ifeq ($(NOFORTRAN), 1) | ifeq ($(NOFORTRAN), 1) | ||||
| $(info OpenBLAS: Detecting fortran compiler failed. Cannot compile LAPACK. Only compile BLAS.) | |||||
| $(info OpenBLAS: Detecting fortran compiler failed. Can only compile BLAS and f2c-converted LAPACK.) | |||||
| endif | endif | ||||
| ifeq ($(NO_STATIC), 1) | ifeq ($(NO_STATIC), 1) | ||||
| ifeq ($(NO_SHARED), 1) | ifeq ($(NO_SHARED), 1) | ||||
| @@ -1041,9 +1041,11 @@ FCOMMON_OPT += -frecursive | |||||
| # work around ABI problem with passing single-character arguments | # work around ABI problem with passing single-character arguments | ||||
| FCOMMON_OPT += -fno-optimize-sibling-calls | FCOMMON_OPT += -fno-optimize-sibling-calls | ||||
| #Don't include -lgfortran, when NO_LAPACK=1 or lsbcc | #Don't include -lgfortran, when NO_LAPACK=1 or lsbcc | ||||
| ifneq ($(NOFORTRAN), 1) | |||||
| ifneq ($(NO_LAPACK), 1) | ifneq ($(NO_LAPACK), 1) | ||||
| EXTRALIB += -lgfortran | EXTRALIB += -lgfortran | ||||
| endif | endif | ||||
| endif | |||||
| ifdef NO_BINARY_MODE | ifdef NO_BINARY_MODE | ||||
| ifeq ($(ARCH), $(filter $(ARCH),mips64)) | ifeq ($(ARCH), $(filter $(ARCH),mips64)) | ||||
| ifdef BINARY64 | ifdef BINARY64 | ||||
| @@ -58,7 +58,6 @@ TOPSRCDIR = .. | |||||
| include $(TOPSRCDIR)/make.inc | include $(TOPSRCDIR)/make.inc | ||||
| ifneq ($(C_LAPACK), 1) | ifneq ($(C_LAPACK), 1) | ||||
| $(info fortran... C_LAPACK ist $(C_LAPACK)) | |||||
| .SUFFIXES: | .SUFFIXES: | ||||
| .SUFFIXES: .f .o | .SUFFIXES: .f .o | ||||
| .f.o: | .f.o: | ||||
| @@ -67,7 +66,6 @@ $(info fortran... C_LAPACK ist $(C_LAPACK)) | |||||
| .F.o: | .F.o: | ||||
| $(FC) $(FFLAGS) -c -o $@ $< | $(FC) $(FFLAGS) -c -o $@ $< | ||||
| else | else | ||||
| $(info C_LAPACK ist $(C_LAPACK)) | |||||
| .SUFFIXES: .c .o | .SUFFIXES: .c .o | ||||
| .c.o: | .c.o: | ||||
| $(CC) $(CFLAGS) -c -o $@ $< | $(CC) $(CFLAGS) -c -o $@ $< | ||||