Files
rocm-systems/tests/kfdtest/src
Graham Sider 0dbac97b75 kfdtest: Overhaul KFDCWSRTest.BasicTest
This patch restructures the CWSR basic test and allows for
creating parameterized CWSR tests. This patch introduces four
parameterizations. These tests behave as follows:

This test dispatches the IterateIsa shader, which continuously
increments a vgpr for (num_witems / WAVE_SIZE) waves. While this shader
is running, dequeue/requeue requests are sent in a loop to trigger
CWSRs.

This test defines a CWSR threshold. Once the number of CWSRs triggered
reaches the threshold, a known-value is filled into the inputBuf to
signal the shader to exit.

4 parameterized tests are defined:

KFDCWSRTest.BasicTest/0
KFDCWSRTest.BasicTest/1
KFDCWSRTest.BasicTest/2
KFDCWSRTest.BasicTest/3

0: 1 work-item, CWSR threshold of 10
1: 256 work-items, CWSR threshold of 50
2: 512 work-items, CWSR threshold of 100
3: 1024 work-items, CWSR threshold of 1000

Tuple Format: (num_witems, cwsr_thresh)

num_witems: Defines the number of work-items.
cwsr_thresh: Defines the number of CWSRs to trigger.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: I639eb7bd75b14ee70e190b4bd19dcf34096fc7bf
2022-08-22 19:55:04 -04:00
..
2018-08-23 06:20:17 -04:00
2018-08-23 06:20:17 -04:00
2022-04-26 13:14:33 -04:00
2021-03-02 07:48:22 -05:00
2022-04-26 13:14:33 -04:00
2022-04-26 13:14:33 -04:00
2018-08-23 06:20:17 -04:00
2018-08-14 08:17:57 -04:00
2022-07-21 16:08:19 -04:00
2019-02-15 15:03:32 -05:00
2018-08-23 06:20:17 -04:00
2019-11-15 15:27:21 -05:00
2019-11-15 15:27:21 -05:00
2018-07-31 00:00:34 -04:00
2018-07-31 00:00:34 -04:00
2022-04-26 13:14:33 -04:00