Merge pull request #5058 from coolljt0725/fix_build_warning

gpu: Fix build warning
This commit is contained in:
Daniel Hiltgen 2024-06-15 11:52:36 -07:00 committed by GitHub
commit 07d143f412
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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...)