chundoong-lab-ta/APSS23/matmul/Makefile

21 lines
423 B
Makefile
Raw Normal View History

2023-08-09 15:11:42 +09:00
TARGET=main
OBJECTS=util.o matmul.o main.o
CPPFLAGS=-std=c++11 -O3 -Wall -march=native -mavx2 -mno-avx512f -mfma -fopenmp
CPPFLAGS+= -I/usr/local/cuda/include/
2023-08-14 04:27:36 +09:00
LDFLAGS=-lm -lcudart -lcublas -lnvToolsExt
2023-08-09 15:11:42 +09:00
LDFLAGS+=-L/usr/local/cuda/lib64
NVCC=/usr/local/cuda/bin/nvcc
all: $(TARGET)
$(TARGET): $(OBJECTS)
g++ $(CPPFLAGS) $^ -o $@ $(LDFLAGS)
matmul.o: matmul.cu
$(NVCC) -c -o $@ $^
clean:
rm -rf $(TARGET) $(OBJECTS)