From c1da03616ed315f2f6d0f3f2c7f09f97c35ebc8a Mon Sep 17 00:00:00 2001 From: Evgeny Date: Mon, 27 Apr 2020 13:05:47 -0500 Subject: [PATCH] test suite minor changes Change-Id: I673055c74461c106b4f705c209e54d83b7d3fb17 [ROCm/rocprofiler commit: 1d638b6f79d3858d93b4f2a2579d7d1566d1e8cc] --- projects/rocprofiler/test/app/intercept_test.cpp | 8 +------- projects/rocprofiler/test/run.sh | 3 +++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/projects/rocprofiler/test/app/intercept_test.cpp b/projects/rocprofiler/test/app/intercept_test.cpp index a24d5530d5..c2905d1eea 100644 --- a/projects/rocprofiler/test/app/intercept_test.cpp +++ b/projects/rocprofiler/test/app/intercept_test.cpp @@ -30,14 +30,8 @@ THE SOFTWARE. #include #include -#include "ctrl/run_kernel.h" -#include "ctrl/test_aql.h" -#include "ctrl/test_hsa.h" #include "inc/rocprofiler.h" -#include "dummy_kernel/dummy_kernel.h" -#include "simple_convolution/simple_convolution.h" -#include "util/test_assert.h" -#include "util/xml.h" +#include "util/hsa_rsrc_factory.h" #define PUBLIC_API __attribute__((visibility("default"))) #define CONSTRUCTOR_API __attribute__((constructor)) diff --git a/projects/rocprofiler/test/run.sh b/projects/rocprofiler/test/run.sh index d969aa0d65..f05542ecf7 100755 --- a/projects/rocprofiler/test/run.sh +++ b/projects/rocprofiler/test/run.sh @@ -83,8 +83,11 @@ eval_test "Standalone sampling usage model test" ./test/standalone_test # Standalone intercepting test # ROC profiler library loaded by HSA runtime export HSA_TOOLS_LIB=librocprofiler64.so.1 +# enable intercepting mode in rocprofiler export ROCP_HSA_INTERCEPT=2 +# test macro for kernel iterations number export ROCP_KITER=100 +# test macro for per-kernel dispatching number export ROCP_DITER=10 eval_test "Standalone intercepting test" ./test/stand_intercept_test unset ROCP_HSA_INTERCEPT