Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82390430
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
Wed, Sep 11, 03:29
Size
1 KB
Mime Type
text/x-makefile
Expires
Fri, Sep 13, 03:29 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20691422
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