Update gpu_info_rocm.c
This commit is contained in:
parent
b5cf31b460
commit
59d87127f5
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ void rocm_get_version(rocm_handle_t h, rocm_version_resp_t *resp) {
|
||||||
const int buflen = 256;
|
const int buflen = 256;
|
||||||
char buf[buflen + 1];
|
char buf[buflen + 1];
|
||||||
if (h.handle == NULL) {
|
if (h.handle == NULL) {
|
||||||
resp->str = strdup("nvml handle not initialized");
|
resp->str = strdup("rocm handle not initialized");
|
||||||
resp->status = 1;
|
resp->status = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -195,4 +195,4 @@ void rocm_get_version(rocm_handle_t h, rocm_version_resp_t *resp) {
|
||||||
resp->str = strdup(buf);
|
resp->str = strdup(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __APPLE__
|
#endif // __APPLE__
|
||||||
|
|
Loading…
Reference in a new issue