Skip to content

Commit 4773e06

Browse files
lamb-jdavid-salinas
authored andcommitted
[Comgr] Support 4-field-triple for Spirv
1 parent 6778db2 commit 4773e06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amd/comgr/src/comgr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ amd_comgr_status_t COMGR::parseTargetIdentifier(StringRef IdentStr,
310310

311311

312312
// TODO: Add a LIT test for this
313-
if (IdentStr == "amdgcn-amd-amdhsa--amdgcnspirv") {
313+
if (IdentStr == "amdgcn-amd-amdhsa--amdgcnspirv" ||
314+
IdentStr == "amdgcn-amd-amdhsa-unknown-amdgcnspirv") {
314315
// Features not supported for SPIR-V
315316
if (!Ident.Features.empty())
316317
return AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT;

0 commit comments

Comments
 (0)