Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ GPU_Microbenchmark:
$(SETENV) $(MAKE) $(MAKE_ARGS) -C cuda/GPU_Microbenchmark
mv cuda/GPU_Microbenchmark/bin/* $(BINDIR)/$(BINSUBDIR)/

GPU_Microbenchmark_gmma:
mkdir -p $(BINDIR)/$(BINSUBDIR)/
$(SETENV) $(MAKE) $(MAKE_ARGS) -C cuda/GPU_Microbenchmark gmma
mv cuda/GPU_Microbenchmark/bin/* $(BINDIR)/$(BINSUBDIR)/


Deepbench_nvidia:
$(SETENV) $(MAKE) $(MAKE_ARGS) -C cuda/DeepBench/code/nvidia
Expand Down
8 changes: 7 additions & 1 deletion src/cuda/GPU_Microbenchmark/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
BASE_DIR := $(shell pwd)
BIN_DIR := $(BASE_DIR)/bin
SUB_DIRS = $(wildcard ubench/*/*/)
ALL_SUB_DIRS = $(wildcard ubench/*/*/)
GMMA_DIRS = $(filter %gmma/,$(ALL_SUB_DIRS))
SUB_DIRS = $(filter-out $(GMMA_DIRS),$(ALL_SUB_DIRS))
SUB_DIRS_ALL = $(SUB_DIRS:%=all-%)
SUB_DIRS_CLEAN = $(SUB_DIRS:%=clean-%)
GMMA_DIRS_ALL = $(GMMA_DIRS:%=all-%)
GMMA_DIRS_CLEAN = $(GMMA_DIRS:%=clean-%)


all: create_dir $(SUB_DIRS_ALL)
gmma: create_dir $(GMMA_DIRS_ALL)
clean: delete_dir $(SUB_DIRS_CLEAN)
clean_gmma: $(GMMA_DIRS_CLEAN)

$(SUB_DIRS_ALL):
$(MAKE) $(MAKE_FLAGS) -C $(@:all-%=%)
Expand Down