Commit 225f0d12 authored by Lei Jitang's avatar Lei Jitang
Browse files

gpu: Fix build warning


Signed-off-by: default avatarLei Jitang <leijitang@outlook.com>
parent 532db583
...@@ -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...)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment