Skip to content

Commit 8e51a5d

Browse files
committed
Fix hip conflict wrt KERNEL_INFO_NUM_ARGS
1 parent a433766 commit 8e51a5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/hip/kernel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ struct ur_kernel_handle_t_ {
201201
/// offset. Note this only returns the current known number of arguments,
202202
/// not the real one required by the kernel, since this cannot be queried
203203
/// from the HIP Driver API
204-
size_t getNumArgs() const noexcept { return Args.Indices.size() - 1; }
204+
uint32_t getNumArgs() const noexcept { return Args.Indices.size() - 1; }
205205

206206
void setKernelArg(int Index, size_t Size, const void *Arg) {
207207
Args.addArg(Index, Size, Arg);

0 commit comments

Comments
 (0)