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
родитель c1ea70b539
Коммит 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_;