kfdtest: Test XNACK on and off for SVM tests

Add parameterization for KFDSVM tests so that we test with both XNACK
enabled and XNACK disabled. This will be overridden by HSA_XNACK, if set

Change-Id: Ie96eb61c03115f947e08cfa076ac459f7440f5d8


[ROCm/ROCR-Runtime commit: 478a68d49c]
This commit is contained in:
Kent Russell
2023-05-16 09:13:00 -04:00
والد 3795454c1b
کامیت 8bbcfca082
5فایلهای تغییر یافته به همراه54 افزوده شده و 38 حذف شده
@@ -41,7 +41,7 @@ void KFDSVMEvictTest::SetUp() {
KFDLocalMemoryTest::SetUp();
SVMSetXNACKMode();
SVMSetXNACKMode(GetParam());
ROUTINE_END
}
@@ -217,7 +217,7 @@ void KFDSVMEvictTest::WaitChildProcesses() {
* - Synchronization between the processes, so they know for sure when
* they are done allocating memory
*/
TEST_F(KFDSVMEvictTest, BasicTest) {
TEST_P(KFDSVMEvictTest, BasicTest) {
TEST_REQUIRE_ENV_CAPABILITIES(ENVCAPS_64BITLINUX);
TEST_START(TESTPROFILE_RUNALL);
@@ -282,7 +282,7 @@ TEST_F(KFDSVMEvictTest, BasicTest) {
* - notify shader to quit
* - check result buffer with specific value to confirm all wavefronts quit normally
*/
TEST_F(KFDSVMEvictTest, QueueTest) {
TEST_P(KFDSVMEvictTest, QueueTest) {
TEST_REQUIRE_ENV_CAPABILITIES(ENVCAPS_64BITLINUX);
TEST_START(TESTPROFILE_RUNALL)
@@ -383,3 +383,4 @@ TEST_F(KFDSVMEvictTest, QueueTest) {
TEST_END
}
INSTANTIATE_TEST_CASE_P(, KFDSVMEvictTest,::testing::Values(0, 1));