Skip to content

Commit

Permalink
Make make calls silent and remove printing of gradients
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Nov 14, 2024
1 parent 63882b6 commit b6f03a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions demos/CUDA/BlackScholes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit b6f03a4

Please sign in to comment.