benchmark-fortran-c

Benchmark code for Fortran and C GEMV test kernels
git clone https://git.0xfab.ch/benchmark-fortran-c.git
Log | Files | Refs

Makefile (351B)


      1 FC = gfortran 
      2 FFLAGS = -cpp -g -c -DTRANSPOSE
      3 .PHONY: clean
      4 
      5 all: sgemv_O0.o sgemv_O1.o sgemv_O2.o sgemv_O3.o
      6 
      7 sgemv_O0.o: sgemv.f
      8 	$(FC) -O0 $(FFLAGS) -o $@ $<
      9 
     10 sgemv_O1.o    : sgemv.f
     11 	$(FC) -O1 $(FFLAGS) -o $@ $<
     12 
     13 sgemv_O2.o    : sgemv.f
     14 	$(FC) -O2 $(FFLAGS) -o $@ $<
     15 
     16 sgemv_O3.o    : sgemv.f
     17 	$(FC) -O3 $(FFLAGS) -o $@ $<
     18 
     19 clean:
     20 	rm -f sgemv_O*