Skip to content

Commit 765d22d

Browse files
committed
fix
1 parent a59408f commit 765d22d

File tree

1 file changed

+1
-1
lines changed
  • offload/plugins-nextgen/common/src/Utils

1 file changed

+1
-1
lines changed

offload/plugins-nextgen/common/src/Utils/ELF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ checkMachineImpl(const object::ELFObjectFile<ELFT> &ELFObj, uint16_t EMachine) {
7979
if ((Header.e_flags & EF_CUDA_SM) < EF_CUDA_SM35)
8080
return createError("unsupported NVPTX architecture");
8181
} else if (Header.e_ident[EI_ABIVERSION] == ELFABIVERSION_CUDA_V2) {
82-
if ((Header.e_flags & EF_CUDA_SM) < EF_CUDA_SM100)
82+
if ((Header.e_flags & EF_CUDA_SM_MASK) < EF_CUDA_SM100)
8383
return createError("unsupported NVPTX architecture");
8484
} else {
8585
return createError("invalid CUDA ABI version");

0 commit comments

Comments
 (0)