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
225f0d12
Commit
225f0d12
authored
Jun 15, 2024
by
Lei Jitang
Browse files
gpu: Fix build warning
Signed-off-by:
Lei Jitang
<
leijitang@outlook.com
>
parent
532db583
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gpu/gpu_info_oneapi.c
gpu/gpu_info_oneapi.c
+1
-1
No files found.
gpu/gpu_info_oneapi.c
View file @
225f0d12
...
@@ -160,7 +160,7 @@ void oneapi_check_vram(oneapi_handle_t h, int driver, int device,
...
@@ -160,7 +160,7 @@ void oneapi_check_vram(oneapi_handle_t h, int driver, int device,
return
;
return
;
}
}
snprintf
(
&
resp
->
gpu_name
[
0
],
GPU_NAME_LEN
,
props
.
modelName
);
snprintf
(
&
resp
->
gpu_name
[
0
],
GPU_NAME_LEN
,
"%s"
,
props
.
modelName
);
// TODO this needs to map to ONEAPI_DEVICE_SELECTOR syntax
// TODO this needs to map to ONEAPI_DEVICE_SELECTOR syntax
// (this is probably wrong...)
// (this is probably wrong...)
...
...
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