chundoong-lab-ta/SamsungDS22/submissions/HW5/hs5006.kim/Makefile

16 lines
327 B
Makefile

TARGET=main
OBJECTS=util.o mat_mul.o main.o
CPPFLAGS=-std=c++11 -O3 -Wall -march=native -mavx2 -mfma -mavx512f -fopenmp
CPPFLAGS+= -I/usr/local/cuda/include/
LDFLAGS=-lm
LDFLAGS+=-L/usr/local/cuda/lib64 -lOpenCL
all: $(TARGET)
$(TARGET): $(OBJECTS)
g++ $(CPPFLAGS) $^ -o $@ $(LDFLAGS)
clean:
rm -rf $(TARGET) $(OBJECTS)