Make roc::Device::getBackendDevice non-virtual

Make roc::Device::getBackendDevice non-virtual and only defined by
roc::Device and not roc::NullDevice. It is only meaningful for an
online device.

Change-Id: Ic333a3a42f650bea524e80dab587a34f1353e593


[ROCm/clr commit: 08f3126f6c]
이 커밋은 다음에 포함됨:
Tony Tye가 2021-01-13 08:24:28 +00:00를 커밋했습니다
1 부모 9cd02c640e
커밋 3463b51be1
1 파일이 변경됨
+1 -7
+1 -7
파일 보기
@@ -127,12 +127,6 @@ class NullDevice : public amd::Device {
//! Construct an HSAIL program object from the ELF assuming it is valid
virtual device::Program* createProgram(amd::Program& owner, amd::option::Options* options = nullptr);
const AMDDeviceInfo& deviceInfo() const { return deviceInfo_; }
//! Gets the backend device for the Null device type
virtual hsa_agent_t getBackendDevice() const {
ShouldNotReachHere();
const hsa_agent_t kInvalidAgent = {0};
return kInvalidAgent;
}
// List of dummy functions which are disabled for NullDevice
@@ -309,7 +303,7 @@ class Device : public NullDevice {
static bool loadHsaModules();
virtual hsa_agent_t getBackendDevice() const { return _bkendDevice; }
hsa_agent_t getBackendDevice() const { return _bkendDevice; }
const hsa_agent_t &getCpuAgent() const { return cpu_agent_; } // Get the CPU agent with the least NUMA distance to this GPU
static const std::vector<hsa_agent_t>& getGpuAgents() { return gpu_agents_; }