Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90330030
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, Oct 31, 14:22
Size
746 B
Mime Type
text/x-makefile
Expires
Sat, Nov 2, 14:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22054036
Attached To
R8982 phpc_submit_nbody
Makefile
View Options
CXX=g++
NVCC=nvcc
CXXFLAGS= -std=c++11 -Wall -O3 -ftree-vectorize
CUDAFLAGS= -std=c++11 -arch=sm_35 -rdc=true -O3
LDFLAGS=
LIBS= -lcudadevrt -lcurand
TARGET=nbody
DOC = doc
SRCDIR=src
OBJDIR=build
BINDIR=.
SOURCES := $(wildcard $(SRCDIR)/*.cu)
INCLUDES := $(wildcard $(SRCDIR)/*.hpp)
OBJECTS := $(SOURCES:$(SRCDIR)/%.cu=$(OBJDIR)/%.o)
RM = rm -f
$(BINDIR)/$(TARGET): $(OBJECTS)
$(NVCC) $(CUDAFLAGS) $(OBJECTS) -o $@ $(LIBS)
@echo "Linking complete!"
$(OBJECTS): $(OBJDIR)/%.o : $(SRCDIR)/%.cu
$(NVCC) $(CUDAFLAGS) -c $< -o $@
.PHONY: clean
clean:
$(RM) $(OBJECTS)
@echo "Cleaned up objects."
.PHONY: cleanall
cleanall: clean
$(RM) $(BINDIR)/$(TARGET)
@echo "Cleaned up binaries."
.PHONY: doc
doc:
cd $(DOC) && doxygen Doxyfile
Event Timeline
Log In to Comment