Only enable HIP for Vega20 on non-ROCm platforms

SWDEV-245906

All asics will still be supported for developer builds.

Change-Id: I0eac2246162d133fe63449c200d996fe05bd51bd


[ROCm/clr commit: 24c1c48db7]
This commit is contained in:
Vlad Sytchenko
2020-07-27 13:08:01 -04:00
والد f8c00384fd
کامیت c98a71dc9e
@@ -296,6 +296,11 @@ bool NullDevice::init() {
bool NullDevice::create(Pal::AsicRevision asicRevision, Pal::GfxIpLevel ipLevel,
uint xNACKSupported) {
if (IS_HIP && IS_MAINLINE &&
(asicRevision != Pal::AsicRevision::Vega20)) {
return false;
}
online_ = false;
Pal::DeviceProperties properties = {};