Browse Source

Merge pull request #2224 from jaglinux/fix_rocm_get_version_message

ROCm: Correct the response string in rocm_get_version function
Daniel Hiltgen 1 năm trước cách đây
mục cha
commit
c8059b4dcf
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      gpu/gpu_info_rocm.c

+ 2 - 2
gpu/gpu_info_rocm.c

@@ -178,7 +178,7 @@ void rocm_get_version(rocm_handle_t h, rocm_version_resp_t *resp) {
   const int buflen = 256;
   char buf[buflen + 1];
   if (h.handle == NULL) {
-    resp->str = strdup("nvml handle not initialized");
+    resp->str = strdup("rocm handle not initialized");
     resp->status = 1;
     return;
   }
@@ -195,4 +195,4 @@ void rocm_get_version(rocm_handle_t h, rocm_version_resp_t *resp) {
   resp->str = strdup(buf);
 }
 
-#endif  // __APPLE__
+#endif  // __APPLE__