Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
59d87127
Unverified
Commit
59d87127
authored
Jan 26, 2024
by
Jagadish Krishnamoorthy
Committed by
GitHub
Jan 26, 2024
Browse files
Update gpu_info_rocm.c
parent
b5cf31b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gpu/gpu_info_rocm.c
gpu/gpu_info_rocm.c
+2
-2
No files found.
gpu/gpu_info_rocm.c
View file @
59d87127
...
@@ -178,7 +178,7 @@ void rocm_get_version(rocm_handle_t h, rocm_version_resp_t *resp) {
...
@@ -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) {
...
@@ -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__
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment