Support GPU memory test and compute queue test using Rocr

A new diagnostic module librdc_rocr.so is created. The
module uses Rocr to test the memory allocation, memory access
and compute queue ready status.

Change-Id: I9098f4fc3209bf381b7cb3658a4e94c2e22f2fe9


[ROCm/rdc commit: 78e2f2486b]
이 커밋은 다음에 포함됨:
Bill(Shuzhou) Liu
2021-09-16 15:38:37 -04:00
커밋한 사람 Shuzhou Liu
부모 ed96db8cba
커밋 6b700f8005
74개의 변경된 파일4811개의 추가작업 그리고 25개의 파일을 삭제
+2 -3
파일 보기
@@ -31,9 +31,7 @@ THE SOFTWARE.
static std::string get_test_name(rdc_diag_test_cases_t test_case) {
const std::map<rdc_diag_test_cases_t, std::string> test_desc = {
{RDC_DIAG_COMPUTE_PROCESS, "No compute process"},
{RDC_DIAG_SDMA_QUEUE, "SDMA Queue ready"},
{RDC_DIAG_COMPUTE_QUEUE, "Compute Queue ready"},
{RDC_DIAG_VRAM_CHECK, "VRAM check"},
{RDC_DIAG_SYS_MEM_CHECK, "System memory check"},
{RDC_DIAG_NODE_TOPOLOGY, "Node topology check"},
{RDC_DIAG_GPU_PARAMETERS, "GPU parameters check"},
@@ -160,7 +158,8 @@ int main(int, char **) {
std::cout << std::setw(22) << std::left
<< get_test_name(RDC_DIAG_COMPUTE_PROCESS) + ":"
<< rdc_diagnostic_result_string(test_result.status) << "\n";
<< test_result.info << "\n";
// Cleanup consists of shutting down RDC.
cleanup: