wsl/hsakmt: remove unessary struct _HsaVersionCapability
Signed-off-by: Chengjun Yao <Chengjun.Yao@amd.com> Reviewed-by: Horatio Zhang <Hongkun.Zhang@amd.com> Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/73>
Этот коммит содержится в:
коммит произвёл
Frank Min
родитель
13fc35d8de
Коммит
872476061a
@@ -56,7 +56,6 @@ struct hsakmtRuntime {
|
||||
is_svm_api_supported(false),
|
||||
zfb_support(0),
|
||||
vendor_packet_process(0),
|
||||
enable_vendor_packet(0),
|
||||
check_avail_sysram(false),
|
||||
max_single_alloc_size(0),
|
||||
enable_thunk_sub_allocator(0) {}
|
||||
@@ -74,7 +73,6 @@ struct hsakmtRuntime {
|
||||
bool is_svm_api_supported;
|
||||
int zfb_support;
|
||||
int vendor_packet_process;
|
||||
int enable_vendor_packet;
|
||||
bool check_avail_sysram;
|
||||
size_t max_single_alloc_size;
|
||||
int enable_thunk_sub_allocator;
|
||||
|
||||
@@ -107,11 +107,6 @@ static HSAKMT_STATUS init_vars_from_env(void) {
|
||||
if (envvar)
|
||||
dxg_runtime->vendor_packet_process = atoi(envvar);
|
||||
|
||||
/* Decide whether hsa-runtime dispatch vendor packet */
|
||||
envvar = getenv("WSL_ENABLE_VENDOR_PACKET");
|
||||
if (envvar)
|
||||
dxg_runtime->enable_vendor_packet = atoi(envvar);
|
||||
|
||||
/* Decide whether to check available system memory before allocation */
|
||||
envvar = getenv("WSL_CHECK_AVAIL_SYSRAM");
|
||||
if (envvar)
|
||||
|
||||
@@ -35,26 +35,3 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtGetVersion(HsaVersionInfo *VersionInfo) {
|
||||
|
||||
return HSAKMT_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
HSAKMT_STATUS HSAKMTAPI
|
||||
hsaKmtGetVersionCapInfo(HsaVersionCapability *VersionCapInfo) {
|
||||
CHECK_DXG_OPEN();
|
||||
|
||||
VersionCapInfo->Value = 0;
|
||||
VersionCapInfo->ui64.Sdma = 1;
|
||||
VersionCapInfo->ui64.IPCLegacyMode = 0; // Force to 0 to support IPC mem
|
||||
/*VersionCapInfo->ui64.InterruptSignal = 0;
|
||||
VersionCapInfo->ui64.SdmaUserQueue = 0;
|
||||
VersionCapInfo->ui64.SdmaPeer = 0;
|
||||
VersionCapInfo->ui64.SdmaGang = 0;
|
||||
VersionCapInfo->ui64.Image = 0;
|
||||
VersionCapInfo->ui64.EventAge = 0;
|
||||
VersionCapInfo->ui64.Scratch = 0;
|
||||
VersionCapInfo->ui64.XNack = 0;
|
||||
VersionCapInfo->ui64.FineGrainPcie = 0;
|
||||
VersionCapInfo->ui64.Devmemqueuebuf = 0;*/
|
||||
|
||||
VersionCapInfo->ui64.VendorPacket = dxg_runtime->enable_vendor_packet;
|
||||
|
||||
return HSAKMT_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user