Skip to content

Commit 46040ca

Browse files
lamb-jrocm-devops
authored andcommitted
SWDEV-518221 Fix major/minor Comgr version check
Change-Id: I2210aadafcae984dafc68c3fe16508bb2b409077
1 parent 68c3656 commit 46040ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hipamd/src/hip_fatbin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ hipError_t FatBinaryInfo::ExtractFatBinaryUsingCOMGR(const std::vector<hip::Devi
200200
if (isCompressed || HIP_ALWAYS_USE_NEW_COMGR_UNBUNDLING_ACTION) {
201201
size_t major = 0, minor = 0;
202202
amd::Comgr::get_version(&major, &minor);
203-
if (major >= 2 && minor >= 8) {
203+
if ((major == 2 && minor >= 8) || major > 2) {
204204
hip_status = ExtractFatBinaryUsingCOMGR(image_, devices);
205205
break;
206206
} else if (isCompressed) {
207-
LogPrintfError("comgr %zu.%zu cannot support commpressed mode which need comgr 2.8+", major,
207+
LogPrintfError("comgr %zu.%zu cannot support compressed mode which requires comgr 2.8+", major,
208208
minor);
209209
hip_status = hipErrorNotSupported;
210210
break;

0 commit comments

Comments
 (0)