Commit cfb166c7 authored by Francois Tessier's avatar Francois Tessier

Fix Makefile for the Fortran benchmark on BG/Q

parent dd7ba4bb
MPIF90 = mpixlf90
MPIF90 = mpif90
FLAGS = -g -I$(HOME)/install/$(ARCHI)/include/ -WF,-DBGQ -WF,-DDBG -WF,-DCOLOR #-DBGQ -DDBG -DCOLOR
FLAGS += -qextname=tapioca_init \
-qextname=tapioca_set_aggregation_tier \
-qextname=tapioca_set_target_tier \
-qextname=tapioca_read \
-qextname=tapioca_write \
-qextname=tapioca_finalize
LDFLAGS = -L${IBM_MAIN_DIR}/vacpp/bg/12.1/lib64 -L$(HOME)/install/$(ARCHI)/lib/ -ltapioca -lstdc++ -libmc++
FLAGS = -g -I$(HOME)/install/$(ARCHI)/include/ -DBGQ -DDBG -DCOLOR
LDFLAGS = -L$(HOME)/install/$(ARCHI)/lib/ -ltapioca -lstdc++
all: simple_array
simple_array: simple_array.o ../../bindings/F90/tapioca_f90api.o
simple_array:simple_array.o ../../bindings/F90/tapioca_f90api.o
$(MPIF90) $(FLAGS) $? -o $@ $(LDFLAGS)
simple_array.o:simple_array.f90
$(MPIF90) $(FLAGS) -c $? $(LDFLAGS)
$(MPIF90) $(FLAGS) -c $? $(LDFLAGS)
clean:
rm simple_array simple_array.o
rm simple_array simple_array.o
MPIF90 = mpixlf90
FLAGS = -g
LDFLAGS =
FLAGS = -g -I$(HOME)/install/$(ARCHI)/include/ -WF,-DBGQ -WF,-DDBG -WF,-DCOLOR #-DBGQ -DDBG -DCOLOR
FLAGS += -qextname=tapioca_init \
-qextname=tapioca_set_aggregation_tier \
-qextname=tapioca_set_target_tier \
-qextname=tapioca_read \
-qextname=tapioca_write \
-qextname=tapioca_finalize
LDFLAGS = -L${IBM_MAIN_DIR}/vacpp/bg/12.1/lib64 -L$(HOME)/install/$(ARCHI)/lib/ -ltapioca -lstdc++ -libmc++
all: simple_array
simple_array:simple_array.f90
simple_array: simple_array.o ../../bindings/F90/tapioca_f90api.o
$(MPIF90) $(FLAGS) $? -o $@ $(LDFLAGS)
simple_array.o:simple_array.f90
$(MPIF90) $(FLAGS) -c $? $(LDFLAGS)
clean:
rm simple_array
rm simple_array simple_array.o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment