From 24c1c48db7b2bd2d2488bc24f36106fcde5260e1 Mon Sep 17 00:00:00 2001 From: Vlad Sytchenko Date: Mon, 27 Jul 2020 13:08:01 -0400 Subject: [PATCH] Only enable HIP for Vega20 on non-ROCm platforms SWDEV-245906 All asics will still be supported for developer builds. Change-Id: I0eac2246162d133fe63449c200d996fe05bd51bd --- rocclr/device/pal/paldevice.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rocclr/device/pal/paldevice.cpp b/rocclr/device/pal/paldevice.cpp index bb82b4687e..e32767da5e 100755 --- a/rocclr/device/pal/paldevice.cpp +++ b/rocclr/device/pal/paldevice.cpp @@ -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 = {};