Delete roc::Program::hsaDevice

Delete roc::Program::hsaDevice and access directly from device
associated with program. This allows to be clear if the device is a
NullDevice which has no meaningful HSA agent backend device.

Change-Id: I81f96aff47bf9b8166d0ff6a5efc7c01f0fb6de3
このコミットが含まれているのは:
Tony Tye
2021-01-10 02:32:45 +00:00
コミット 783fe2e01b
2個のファイルの変更、5行の追加、9行の削除
-3
ファイルの表示
@@ -57,9 +57,6 @@ class Program : public device::Program {
return static_cast<const Device&>(device());
}
//! Returns the hsaBinary associated with the program
hsa_agent_t hsaDevice() const { return rocNullDevice().getBackendDevice(); }
hsa_executable_t hsaExecutable() const {
assert(!isNull());
return hsaExecutable_;