Skip to content

Commit e5cf0d9

Browse files
the tests now support multiple sizes and directions
1 parent 07f5571 commit e5cf0d9

408 files changed

Lines changed: 32672 additions & 29525 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BLAS/Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ else
6363
BLAS_LIB ?= -lrefblas
6464
endif
6565

66-
# Optional: DIFFSIZES_access when using ISIZE globals (.f or .f90+wrappers when many vars)
66+
# Optional: DIFFSIZES_access when using ISIZE globals (run_tapenade_blas.py writes .f or .f90+wrappers)
67+
# When many ISIZE vars exceed F77 COMMON line limit, generator writes DIFFSIZES_access.f90 + wrappers instead of .f
6768
# Prefer .f90 when present (may have more vars than stale .f)
6869
# Must be defined before any rule that uses it as a prerequisite, so "make forward" (etc.) builds it first.
6970
ifneq ($(wildcard $(SRC_DIR)/DIFFSIZES_access.f90),)
@@ -169,15 +170,19 @@ $(BUILD_DIR)/%_dep2.o: $(SRC_DIR)/%_dep2.f
169170
$(FC) $(FFLAGS_F77) -c $< -o $@
170171

171172
# DIFFSIZES_access - F77 .f or F90 .f90 (generator picks based on COMMON line length)
172-
# When .f90 exists: compile to produce .o and .mod; wrappers need .mod (depend on it explicitly)
173+
# When .f90 exists: compile to produce .o and .mod; wrappers depend on .mod explicitly (avoids stale .o from .f)
173174
$(BUILD_DIR)/diffsizes_access.mod: $(SRC_DIR)/DIFFSIZES_access.f90
174175
$(FC) $(FFLAGS) -J$(BUILD_DIR) -c $< -o $(BUILD_DIR)/DIFFSIZES_access.o
175176

177+
# When .f90 exists: DIFFSIZES_access.o is produced as byproduct of diffsizes_access.mod (do not compile .f)
178+
ifeq ($(wildcard $(SRC_DIR)/DIFFSIZES_access.f90),)
176179
$(BUILD_DIR)/DIFFSIZES_access.o: $(SRC_DIR)/DIFFSIZES_access.f
177180
$(FC) $(FFLAGS_F77) -c $< -o $@
181+
else
182+
$(BUILD_DIR)/DIFFSIZES_access.o: $(BUILD_DIR)/diffsizes_access.mod
183+
endif
178184

179185
# DIFFSIZES_access_wrappers.f - external symbols for F90 module (set_*, get_*, check_*)
180-
# Depend on .mod so we always build from .f90 when using F90 path (avoids stale .o from .f)
181186
$(BUILD_DIR)/DIFFSIZES_access_wrappers.o: $(SRC_DIR)/DIFFSIZES_access_wrappers.f $(BUILD_DIR)/diffsizes_access.mod
182187
$(FC) $(FFLAGS) -J$(BUILD_DIR) -c $(SRC_DIR)/DIFFSIZES_access_wrappers.f -o $@
183188

BLAS/src/DIFFSIZES.f90

Lines changed: 0 additions & 4 deletions
This file was deleted.

BLAS/src/DIFFSIZES_access.f

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)