From b6f03a4e7f050663e4aba6a86f33cfb224550316 Mon Sep 17 00:00:00 2001 From: kchristin Date: Thu, 14 Nov 2024 18:18:48 +0200 Subject: [PATCH] Make make calls silent and remove printing of gradients --- demos/CUDA/BlackScholes/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/demos/CUDA/BlackScholes/Makefile b/demos/CUDA/BlackScholes/Makefile index 888773b11..665939732 100644 --- a/demos/CUDA/BlackScholes/Makefile +++ b/demos/CUDA/BlackScholes/Makefile @@ -2,11 +2,11 @@ LLVM_PATH = /usr/lib/llvm-17 CLANG = $(LLVM_PATH)/bin/clang CUDA_PATH ?= /usr/local/cuda-11.8 -CLAD_PATH = $(CURDIR)/../../../ +CLAD_PATH = $(CURDIR)/../../.. CLAD_PLUGIN = $(CLAD_PATH)/build/./lib/clad.so # Compiler flags -CXXFLAGS = -std=c++17 -Xclang -add-plugin -Xclang clad -Xclang -plugin-arg-clad -Xclang -fdump-derived-fn +CXXFLAGS = -std=c++17 -Xclang -add-plugin -Xclang clad CXXFLAGS += -Xclang -load -Xclang $(CLAD_PLUGIN) CXXFLAGS += -I$(CLAD_PATH)/include -I$(CURDIR)/helper -I$(CUDA_PATH)/include @@ -17,6 +17,8 @@ LDFLAGS = -L$(CUDA_PATH)/lib64 -lcudart_static -ldl -lrt -pthread -lm -lstdc++ all: build +.SILENT: build run clean clobber BlackScholes BlackScholes.o BlackScholes_gold.o + build: BlackScholes BlackScholes.o:BlackScholes.cu @@ -27,7 +29,7 @@ BlackScholes_gold.o:BlackScholes_gold.cpp BlackScholes: BlackScholes.o BlackScholes_gold.o $(CLANG) $(CXXFLAGS) -o $@ BlackScholes.o BlackScholes_gold.o $(LDFLAGS) - + run: build ./BlackScholes