Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zpzim committed May 24, 2016
1 parent b9c53db commit 55ff6d6
Show file tree
Hide file tree
Showing 41 changed files with 5,752,836 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
CC=nvcc
DEVICES=2
LOG_FREQ=0
CUDA_DIRECTORY=/usr/local/cuda-7.5
CFLAGS=-c -arch=sm_37 -O3 -I$(CUDA_DIRECTORY)/include -DNUM_THREADS=$(DEVICES) -DLOG_FREQ=$(LOG_FREQ) #-D__SINGLE_PREC__
RESTARTFLAGS=-D__RESTARTING__
LDFLAGS=-L$(CUDA_DIRECTORY)/lib64 -lcufft
SOURCES=STOMP.cu
OBJECTS=STOMP.o
RESTARTEX=STOMPrestart
RESTARTOBJECTS=STOMPrestart.o
EXECUTABLE=STOMP

all: $(SOURCES) $(EXECUTABLE)

restart: $(SOURCES) $(RESTARTEX)



$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@

$(RESTARTEX): $(RESTARTOBJECTS)
$(CC) $(LDFLAGS) $(RESTARTOBJECTS) -o $@

STOMPrestart.o:
$(CC) $(CFLAGS) $(RESTARTFLAGS) STOMP.cu -o $@

STOMP.o:
$(CC) $(CFLAGS) STOMP.cu -o $@

clean:
rm -f *.o STOMP STOMPrestart
Loading

0 comments on commit 55ff6d6

Please sign in to comment.