diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 04:41:06 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 04:41:06 -0400 |
| commit | b6500058b420dba35bf1e25a7308bf583a526bc8 (patch) | |
| tree | b3add624086562cfba7a4de71136d0f336030f55 /tools/test/cuda_drv_test.c | |
| parent | 4649ee9c83584b2a59b2c72ce67a1f08d3240810 (diff) | |
| download | open-iov-b6500058b420dba35bf1e25a7308bf583a526bc8.tar.gz open-iov-b6500058b420dba35bf1e25a7308bf583a526bc8.zip | |
guest-diag: run_cycle SKIP_OPS knob + cdt output on serial; cdt richer roundtrip diagnostics
Diffstat (limited to 'tools/test/cuda_drv_test.c')
| -rw-r--r-- | tools/test/cuda_drv_test.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/test/cuda_drv_test.c b/tools/test/cuda_drv_test.c index f3ee02f..ba8c20c 100644 --- a/tools/test/cuda_drv_test.c +++ b/tools/test/cuda_drv_test.c @@ -120,8 +120,15 @@ int main(void) memset(back, 0, sizeof(back)); MARK("cuMemcpyDtoH"); CHECK(cuMemcpyDtoH(back, dptr, sizeof(buf))); - printf("roundtrip %s (back[7]=%u expected 22)\n", - memcmp(buf, back, sizeof(buf)) ? "MISMATCH" : "match", back[7]); + { + size_t matched = 0; + for (i = 0; i < 64; i++) + if (buf[i] == back[i]) matched++; + printf("roundtrip %s matched=%zu/64 back[0..7]=%u,%u,%u,%u,%u,%u,%u,%u expected 1,4,7,10,13,16,19,22\n", + matched == 64 ? "match" : "MISMATCH", matched, + back[0], back[1], back[2], back[3], + back[4], back[5], back[6], back[7]); + } MARK("cuMemFree"); CHECK(cuMemFree(dptr)); |
