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:
@@ -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));
|
||||
|
||||
مرجع در شماره جدید
Block a user