From 803447ec890ef0cd465ce0eb61843f069488dac0 Mon Sep 17 00:00:00 2001 From: Kewen Meng Date: Thu, 19 Dec 2024 16:35:42 -0600 Subject: [PATCH 1/2] [Smoke Test] Update smoke test to cover new changes This PR is to update the smoke test to reflect the new changes on runtime tuning. --- test/smoke-dev/rt-tuning-envar/Makefile | 2 +- test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/smoke-dev/rt-tuning-envar/Makefile b/test/smoke-dev/rt-tuning-envar/Makefile index 04abcfd27..96d469f24 100644 --- a/test/smoke-dev/rt-tuning-envar/Makefile +++ b/test/smoke-dev/rt-tuning-envar/Makefile @@ -5,7 +5,7 @@ TESTSRC_MAIN = rt_tuning_envar.c TESTSRC_AUX = TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX) RUNENV += OMPX_ENABLE_RUNTIME_AUTOTUNING=1 -RUNENV += LIBOMPTARGET_AMDGPU_ENABLE_QUEUE_PROFILING=1 +RUNENV += LIBOMPTARGET_KERNEL_TRACE=1 RUNCMD = ./$(TESTNAME) 2>&1 | $(FILECHECK) $(TESTSRC_MAIN) diff --git a/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c b/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c index fd60a94f1..96863f04c 100644 --- a/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c +++ b/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c @@ -35,4 +35,6 @@ int main() return rc; } -/// CHECK: Kernel Duration: {{[0-9]+}} ns +/// CHECK: [Autotuning run] Kernel [[KERNEL_NAME:[^ ]+]] with +/// [[NUM_TEAMS:[0-9]+]] teams ({{[0-9]+}} CU multiplier) and +/// [[NUM_THREADS:[0-9]+]] threads completed in [[TIME:[0-9]+]] ns. From 61b9d0372d844032d1a22a45783e7a8e25ac67c7 Mon Sep 17 00:00:00 2001 From: Kewen Meng Date: Mon, 19 May 2025 14:41:37 -0500 Subject: [PATCH 2/2] updated check pattern to reflect recent changes --- test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c b/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c index 96863f04c..ac38d05bd 100644 --- a/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c +++ b/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c @@ -26,7 +26,7 @@ int main() for (i=0; i