Initial support for gfx1010, gfx1011, gfx1012
Change-Id: I9ec398070c85db08aea72947557c6e1b5f7d541d
[ROCm/ROCR-Runtime commit: 6ebdad5896]
Этот коммит содержится в:
@@ -948,7 +948,7 @@ void AqlQueue::ExecutePM4(uint32_t* cmd_data, size_t cmd_size_b) {
|
|||||||
rel_mem[4] = 0;
|
rel_mem[4] = 0;
|
||||||
rel_mem[5] = 0;
|
rel_mem[5] = 0;
|
||||||
rel_mem[6] = 0;
|
rel_mem[6] = 0;
|
||||||
} else if (agent_->isa()->GetMajorVersion() == 9) {
|
} else if (agent_->isa()->GetMajorVersion() >= 9) {
|
||||||
// Construct an AQL packet to jump to the PM4 IB.
|
// Construct an AQL packet to jump to the PM4 IB.
|
||||||
struct amd_aql_pm4_ib {
|
struct amd_aql_pm4_ib {
|
||||||
uint16_t header;
|
uint16_t header;
|
||||||
|
|||||||
@@ -218,6 +218,9 @@ const IsaRegistry::IsaMap IsaRegistry::GetSupportedIsas() {
|
|||||||
ISAREG_ENTRY_GEN(9, 0, 6, false, true )
|
ISAREG_ENTRY_GEN(9, 0, 6, false, true )
|
||||||
ISAREG_ENTRY_GEN(9, 0, 8, false, true )
|
ISAREG_ENTRY_GEN(9, 0, 8, false, true )
|
||||||
ISAREG_ENTRY_GEN(9, 0, 8, false, false)
|
ISAREG_ENTRY_GEN(9, 0, 8, false, false)
|
||||||
|
ISAREG_ENTRY_GEN(10, 1, 0, false, false)
|
||||||
|
ISAREG_ENTRY_GEN(10, 1, 1, false, false)
|
||||||
|
ISAREG_ENTRY_GEN(10, 1, 2, false, false)
|
||||||
|
|
||||||
return supported_isas;
|
return supported_isas;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1348,6 +1348,8 @@ namespace code {
|
|||||||
asic = "VI";
|
asic = "VI";
|
||||||
} else if (major_version == 9) {
|
} else if (major_version == 9) {
|
||||||
asic = "GFX9";
|
asic = "GFX9";
|
||||||
|
} else if (major_version == 10) {
|
||||||
|
asic = "GFX10";
|
||||||
} else {
|
} else {
|
||||||
assert(!"unknown compute capability");
|
assert(!"unknown compute capability");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,6 +92,9 @@ namespace loader {
|
|||||||
gfx902.handle = 902;
|
gfx902.handle = 902;
|
||||||
gfx903.handle = 903;
|
gfx903.handle = 903;
|
||||||
gfx908.handle = 908;
|
gfx908.handle = 908;
|
||||||
|
gfx1010.handle = 1010;
|
||||||
|
gfx1011.handle = 1011;
|
||||||
|
gfx1012.handle = 1012;
|
||||||
}
|
}
|
||||||
|
|
||||||
hsa_isa_t OfflineLoaderContext::IsaFromName(const char *name)
|
hsa_isa_t OfflineLoaderContext::IsaFromName(const char *name)
|
||||||
@@ -123,6 +126,12 @@ namespace loader {
|
|||||||
return gfx903;
|
return gfx903;
|
||||||
} else if (sname == "AMD:AMDGPU:9:0:8") {
|
} else if (sname == "AMD:AMDGPU:9:0:8") {
|
||||||
return gfx908;
|
return gfx908;
|
||||||
|
} else if (sname == "AMD:AMDGPU:10:1:0") {
|
||||||
|
return gfx1010;
|
||||||
|
} else if (sname == "AMD:AMDGPU:10:1:1") {
|
||||||
|
return gfx1011;
|
||||||
|
} else if (sname == "AMD:AMDGPU:10:1:2") {
|
||||||
|
return gfx1012;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ namespace loader {
|
|||||||
hsa_isa_t invalid;
|
hsa_isa_t invalid;
|
||||||
hsa_isa_t gfx700, gfx701, gfx800, gfx801, gfx802, gfx803, gfx804, gfx810;
|
hsa_isa_t gfx700, gfx701, gfx800, gfx801, gfx802, gfx803, gfx804, gfx810;
|
||||||
hsa_isa_t gfx900, gfx901, gfx902, gfx903, gfx908;
|
hsa_isa_t gfx900, gfx901, gfx902, gfx903, gfx908;
|
||||||
|
hsa_isa_t gfx1010, gfx1011, gfx1012;
|
||||||
std::ostream& out;
|
std::ostream& out;
|
||||||
typedef std::set<void*> PointerSet;
|
typedef std::set<void*> PointerSet;
|
||||||
PointerSet pointers;
|
PointerSet pointers;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user