wsl/libhsakmt: add get_num_wddmdev()
Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Tianci Yin <tianci.yin@amd.com> Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/82>
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
#include "impl/wddm/device.h"
|
#include "impl/wddm/device.h"
|
||||||
|
|
||||||
wsl::thunk::WDDMDevice* get_wddmdev(uint32_t node_id);
|
wsl::thunk::WDDMDevice* get_wddmdev(uint32_t node_id);
|
||||||
|
uint32_t get_num_wddmdev();
|
||||||
wsl::thunk::GpuMemory *get_gpu_mem(void *MemoryAddress);
|
wsl::thunk::GpuMemory *get_gpu_mem(void *MemoryAddress);
|
||||||
|
|
||||||
#define HSAKMT_DEBUG_LEVEL_ERR -1
|
#define HSAKMT_DEBUG_LEVEL_ERR -1
|
||||||
|
|||||||
@@ -1461,3 +1461,7 @@ wsl::thunk::WDDMDevice *get_wddmdev(uint32_t node_id) {
|
|||||||
|
|
||||||
return dxg_topology->wdevices_[node_id - 1];
|
return dxg_topology->wdevices_[node_id - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t get_num_wddmdev() {
|
||||||
|
return dxg_topology->wdevices_.size();
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user