Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions projects/hipblaslt/tensilelite/include/Tensile/AMDGPU.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ namespace TensileLite
int computeUnitCount = 0;
int skDynamicGrid = 6;
int skDynamicWGM = 0;
int fixedWGM = std::numeric_limits<int>::max();
int skMaxCUs = 0;
int skGridMultiplier = 1;
int skFixedGrid = 0;
Expand Down Expand Up @@ -263,6 +264,13 @@ namespace TensileLite
return value;
}

const int getFixedWGM() const
{
static const char* envStr = std::getenv("TENSILE_FIXED_WGM");
static const int value = (envStr == NULL ? std::numeric_limits<int>::max() : std::atoi(envStr));
return value;
}

const int getSKMaxCUs() const
{
static const char* envStr = std::getenv("TENSILE_STREAMK_MAX_CUS");
Expand Down
1 change: 1 addition & 0 deletions projects/hipblaslt/tensilelite/src/AMDGPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ namespace TensileLite
, deviceName(name)
, skDynamicGrid(getSKDynamicGrid())
, skDynamicWGM(getSKDynamicWGM())
, fixedWGM(getFixedWGM())
, skMaxCUs(getSKMaxCUs())
, skGridMultiplier(getSKGridMultiplier())
, skFixedGrid(getSKFixedGrid())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,11 @@ namespace TensileLite
if(sizeMapping.streamK != 0)
{
AMDGPU const* pAMDGPU = dynamic_cast<AMDGPU const*>(&hardware);
if(pAMDGPU->skDynamicWGM == 1)
if(pAMDGPU->fixedWGM >= -1024 && pAMDGPU->fixedWGM <= 1024)
{
defaultWGM = pAMDGPU->fixedWGM;
}
else if(pAMDGPU->skDynamicWGM == 1)
{
hip::HipAMDGPU const* hipAMDGPU
= dynamic_cast<hip::HipAMDGPU const*>(&hardware);
Expand Down