rocrtst: Add test cases for interrupt disabled mode (#2385)

Add explicit test cases to verify ROCr functionality with interrupts
disabled (HSA_ENABLE_INTERRUPT=0). This ensures compatibility with
virtio, dtif, and WSL configurations which require interrupt-disabled
mode.

Signed-off-by: Horatio Zhang <Hongkun.Zhang@amd.com>
Этот коммит содержится в:
hongkzha-amd
2026-01-14 02:10:11 +08:00
коммит произвёл GitHub
родитель b3c4e94e70
Коммит 9dc2488b6b
+7
Просмотреть файл
@@ -82,6 +82,7 @@
#include "suites/functional/filter_devices.h"
#include "amd_smi/amdsmi.h"
#include "common/common.h"
#include "common/os.h"
static RocrTstGlobals *sRocrtstGlvalues = nullptr;
@@ -134,6 +135,12 @@ TEST(rocrtst, Test_Example) {
RunGenericTest(&tst);
}
TEST(rocrtst, Test_Example_InterruptDisabled) {
rocrtst::SetEnv("HSA_ENABLE_INTERRUPT", "0");
TestExample tst;
RunGenericTest(&tst);
}
TEST(rocrtstFunc, MemoryAccessTests) {
MemoryAccessTest mt;
RunCustomTestProlog(&mt);