wsl/hsakmt: add VendorPacket to VersionCapInfo
Provide the query for hsa-runtime to decide whether dispatch vendor packet to wsl-thunk Signed-off-by: Longlong Yao <Longlong.Yao@amd.com> Reviewed-by: Flora Cui <flora.cui@amd.com> Part-of: <http://10.67.69.192/wsl/libhsakmt/-/merge_requests/30>
This commit is contained in:
@@ -140,6 +140,11 @@ static HSAKMT_STATUS init_vars_from_env(void) {
|
||||
if (envvar)
|
||||
vendor_packet_support = atoi(envvar);
|
||||
|
||||
/* Decide whether hsa-runtime dispatch vendor packet */
|
||||
envvar = getenv("WSL_ENABLE_VENDOR_PACKET");
|
||||
if (envvar)
|
||||
enable_vendor_packet = atoi(envvar);
|
||||
|
||||
return HSAKMT_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user