Skip to content

Commit 0099643

Browse files
committed
Update the mask on the signal event ID
1 parent 7d58bd1 commit 0099643

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

amd/device-libs/ockl/src/hsaqs.cl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ update_mbox(const __global amd_signal_t *sig)
7272
if (mb) {
7373
uint id = sig->event_id;
7474
AS(mb, id, memory_order_release, memory_scope_all_svm_devices);
75-
__builtin_amdgcn_s_sendmsg(1 | (0 << 4), __builtin_amdgcn_readfirstlane(id) & 0xff);
75+
uint mid = id &
76+
(__oclc_ISA_version < 9000 ? 0xff :
77+
(__oclc_ISA_version < 10000 ? 0xffffff :
78+
(__oclc_ISA_version < 11000 ? 0x7fffff : 0xffffff)));
79+
__builtin_amdgcn_s_sendmsg(1 | (0 << 4), __builtin_amdgcn_readfirstlane(mid));
7680
}
7781
}
7882

0 commit comments

Comments
 (0)