Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95840386
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 19, 20:07
Size
1 KB
Mime Type
text/x-makefile
Expires
Sat, Dec 21, 20:07 (2 d)
Engine
blob
Format
Raw Data
Handle
23066384
Attached To
rSCINTROPAR Introduction to parallelism
Makefile
View Options
FC = mpif90 -ggdb
CC = mpicc -ggdb
LD = $(FC)
OPTIM = -O3 -ftree-vectorize
FCFLAGS = $(OPTIM) -fopenmp -Wall -Wtabs
LDFLAGS = $(FCFLAGS) -lm
objects = pi_gather.o pi_hybrid.o pi_io_at.o pi_p2p_async_ring.o pi_p2p_derived_type.o pi_p2p_permanent_ring.o pi_p2p_ring.o pi_p2p_sendrecv_ring.o pi_reduce.o
%.o: %.f90
$(FC) -c $(FCFLAGS) $<
%.o: %.c
$(CC) -c $(CCFLAGS) $<
default : all
all: objs pi_gather pi_hybrid pi_io_at pi_p2p_async_ring pi_p2p_derived_type pi_p2p_permanent_ring pi_p2p_ring pi_p2p_sendrecv_ring pi_reduce
objs: $(objects)
pi_gather:
$(LD) $(LDFLAGS) pi_gather.o -o pi_gather
pi_hybrid:
$(LD) $(LDFLAGS) pi_hybrid.o -o pi_hybrid
pi_io_at:
$(LD) $(LDFLAGS) pi_io_at.o -o pi_io_at
pi_p2p_async_ring:
$(LD) $(LDFLAGS) pi_p2p_async_ring.o -o pi_p2p_async_ring
pi_p2p_derived_type:
$(LD) $(LDFLAGS) pi_p2p_derived_type.o -o pi_p2p_derived_type
pi_p2p_permanent_ring:
$(LD) $(LDFLAGS) pi_p2p_permanent_ring.o -o pi_p2p_permanent_ring
pi_p2p_ring:
$(LD) $(LDFLAGS) pi_p2p_ring.o -o pi_p2p_ring
pi_p2p_sendrecv_ring:
$(LD) $(LDFLAGS) pi_p2p_sendrecv_ring.o -o pi_p2p_sendrecv_ring
pi_reduce:
$(LD) $(LDFLAGS) pi_reduce.o -o pi_reduce
clean:
-rm -f $(objects) pi_gather pi_hybrid pi_io_at pi_p2p_async_ring pi_p2p_derived_type pi_p2p_permanent_ring pi_p2p_ring pi_p2p_sendrecv_ring pi_reduce
-rm -f pi.dat
Event Timeline
Log In to Comment