Skip to content
Snippets Groups Projects
Commit 7dea3b28 authored by Gabriel Falk's avatar Gabriel Falk
Browse files

Upload New File

parent 314515ef
Branches
No related tags found
No related merge requests found
CC = g++
NVCC = nvcc
CXXFLAGS= -fopenmp -O3 -Wextra -std=c++11
CUDAFLAGS= -std=c++11 -arch=sm_75
.PHONY: all clean
all: main
clean:
rm -f main main.o cudaKernels.o matrix.o test.o
main: main.o cudaKernels.o matrix.o test.o
$(NVCC) -o main main.o cudaKernels.o matrix.o test.o -lcufft
main.o: main.cpp cudaKernels.h matrix.h test.h
$(CC) $(CXXFLAGS) -c -o main.o main.cpp
cudaKernels.o: cudaKernels.cu
$(NVCC) $(CUDAFLAGS) -c cudaKernels.cu
matrix.o: matrix.cpp matrix.h
$(CC) $(CXXFLAGS) -c -o matrix.o matrix.cpp
test.o: test.cpp test.h
$(CC) $(CXXFLAGS) -c -o test.o test.cpp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment