Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113176927
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, May 15, 20:33
Size
619 B
Mime Type
text/x-makefile
Expires
Sat, May 17, 20:33 (2 d)
Engine
blob
Format
Raw Data
Handle
26174557
Attached To
R12662 PHPC-graded_hw_1
Makefile
View Options
CXX=nvcc
LD=${CXX}
CXXFLAGS+=-Xcompiler="-Wall -Wextra -Werror" -std c++11 -O3
LDFLAGS+=-lm $(CXXFLAGS)
OBJS=poisson.o simulation.o double_buffer.o dumpers.o
all: poisson_per_row poisson_per_entry
poisson_per_row: $(OBJS) simulation_gpu_row.o
$(LD) -o $@ $(OBJS) simulation_gpu_row.o $(LDFLAGS)
poisson_per_entry: $(OBJS) simulation_gpu_entry.o
$(LD) -o $@ $(OBJS) simulation_gpu_entry.o $(LDFLAGS)
simulation_gpu_row.o: simulation_gpu.cu
$(CXX) $(CXXFLAGS) -DPER_ROW -c $< -o $@
simulation_gpu_entry.o: simulation_gpu.cu
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f poisson_per_row poisson_per_entry *.o *~
Event Timeline
Log In to Comment