Skip to content

Commit

Permalink
SWDEV-441487 - Strix Halo Support and Strix support in staging
Browse files Browse the repository at this point in the history
Change-Id: I96f009b417869f86a71a7683f51089f4b0461893
  • Loading branch information
jiabaxie authored and gargrahul committed Jan 18, 2024
1 parent 28743d8 commit 4bc515a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions rocclr/cmake/ROCclrPAL.cmake
Expand Up @@ -43,6 +43,8 @@ set(PAL_BUILD_NAVI31 ON)
set(PAL_BUILD_NAVI32 ON)
set(PAL_BUILD_NAVI33 ON)
set(PAL_BUILD_PHOENIX1 ON)
set(PAL_BUILD_STRIX1 ON)
set(PAL_BUILD_STRIX_HALO ON)

find_package(AMD_PAL)
find_package(AMD_HSA_LOADER)
Expand Down
4 changes: 2 additions & 2 deletions rocclr/device/device.cpp
Expand Up @@ -219,8 +219,8 @@ std::pair<const Isa*, const Isa*> Isa::supportedIsas() {
{"gfx1101", "gfx1101", true, true, 11, 0, 1, NONE, NONE, 2, 32, 1, 256, 64 * Ki, 32},
{"gfx1102", "gfx1102", true, true, 11, 0, 2, NONE, NONE, 2, 32, 1, 256, 64 * Ki, 32},
{"gfx1103", "gfx1103", true, true, 11, 0, 3, NONE, NONE, 2, 32, 1, 256, 64 * Ki, 32},
{"gfx1150", "gfx1150", true, true, 11, 5, 0, NONE, NONE, 2, 32, 1, 256, 64 * Ki, 32},
{"gfx1151", "gfx1151", true, true, 11, 5, 1, NONE, NONE, 2, 32, 1, 256, 64 * Ki, 32},
{"gfx1150", "gfx1150", true, true, 11, 5, 0, NONE, NONE, 2, 32, 1, 256, 64 * Ki, 32}, //Strix
{"gfx1151", "gfx1151", true, true, 11, 5, 1, NONE, NONE, 2, 32, 1, 256, 64 * Ki, 32}, //Strix Halo
};
return std::make_pair(std::begin(supportedIsas_), std::end(supportedIsas_));
}
Expand Down
2 changes: 2 additions & 0 deletions rocclr/device/pal/paldevice.cpp
Expand Up @@ -113,6 +113,8 @@ static constexpr PalDevice supportedPalDevices[] = {
{11, 0, 3, Pal::GfxIpLevel::GfxIp11_0, "gfx1103", Pal::AsicRevision::Phoenix2},
{11, 0, 3, Pal::GfxIpLevel::GfxIp11_0, "gfx1103", Pal::AsicRevision::HawkPoint1},
{11, 0, 3, Pal::GfxIpLevel::GfxIp11_0, "gfx1103", Pal::AsicRevision::HawkPoint2},
{11, 5, 0, Pal::GfxIpLevel::GfxIp11_5, "gfx1150", Pal::AsicRevision::Strix1},
{11, 5, 1, Pal::GfxIpLevel::GfxIp11_5, "gfx1151", Pal::AsicRevision::StrixHalo},
};

static std::tuple<const amd::Isa*, const char*> findIsa(Pal::AsicRevision asicRevision,
Expand Down
2 changes: 2 additions & 0 deletions rocclr/device/pal/palsettings.cpp
Expand Up @@ -170,6 +170,8 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
amd::Os::getAppPathAndFileName(appName, appPathAndName);

switch (palProp.revision) {
case Pal::AsicRevision::StrixHalo:
case Pal::AsicRevision::Strix1:
// Fall through for Navi3x ...
case Pal::AsicRevision::Navi33:
case Pal::AsicRevision::Navi32:
Expand Down

0 comments on commit 4bc515a

Please sign in to comment.