From c2ca70176c883a0904ade261236c04d23d13ce27 Mon Sep 17 00:00:00 2001 From: JRPAN <25518778+JRPan@users.noreply.github.com> Date: Sat, 7 Feb 2026 17:21:56 -0500 Subject: [PATCH] Add separate GMMA microbenchmark build target Filter GMMA directories out of the default microbenchmark build and add dedicated `gmma` / `GPU_Microbenchmark_gmma` targets so GMMA benchmarks can be compiled independently without affecting the standard build. Co-Authored-By: Claude Opus 4.6 --- src/Makefile | 5 +++++ src/cuda/GPU_Microbenchmark/Makefile | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 9c93508e4..a890d58f7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 diff --git a/src/cuda/GPU_Microbenchmark/Makefile b/src/cuda/GPU_Microbenchmark/Makefile index a21e5980e..bd272159d 100644 --- a/src/cuda/GPU_Microbenchmark/Makefile +++ b/src/cuda/GPU_Microbenchmark/Makefile @@ -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-%=%)