Skip to content
Extraits de code Groupes Projets
Valider a0d45242 rédigé par JordanHanotiaux's avatar JordanHanotiaux
Parcourir les fichiers

Update Makefile

parent 8b5cadf2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
CXX = g++
CXXFLAGS = -std=c++17 -Wall -Wextra -O0
CXX = clang++
CXXFLAGS = -std=c++17 -Wall -Wextra -O3
TARGET = main
SRC = matrix_opencl.cpp main.cpp mlp_sgd.cpp globals.cpp
SRC = matrix_opencl.cpp mlp_sgd.cpp globals.cpp
LIBS = -lOpenCL
all:
$(MAKE) clean && $(MAKE) run
$(TARGET): $(SRC)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(SRC) -lOpenCL
$(CXX) $(CXXFLAGS) -o $(TARGET)$(SUFFIX) $(SRC) main.cpp $(LIBS)
run: $(TARGET)
./$(TARGET)
fast: benchmark.cpp
$(CXX) $(CXXFLAGS) -DFAST_MATMUL -o benchmark$(SUFFIX) benchmark.cpp $(LIBS) $(SRC)
naive: benchmark.cpp
$(CXX) $(CXXFLAGS) -o benchmark$(SUFFIX) benchmark.cpp $(LIBS) $(SRC)
clean:
rm -f $(TARGET)
rm -f benchmark
.PHONY: all run clean
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter