Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Feb 28, 2024
1 parent 43e23a6 commit 75708d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion samples/hip_async_interop/BinomialOptionLevel0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ static ze_command_list_handle_t getCmdListForCmdQueue(ze_context_handle_t Contex
}

void* runLevel0Kernel(void *NativeEventDep, uintptr_t *NativeHandles, int NumHandles, unsigned Blocks, unsigned Threads, unsigned Arg1, void *Arg2, void *Arg3) {
assert (NumHandles == 4);
ze_result_t Err = ZE_RESULT_SUCCESS;
//ze_driver_handle_t Driv = (ze_driver_handle_t)NativeHandles[0];
ze_device_handle_t Dev = (ze_device_handle_t)NativeHandles[1];
Expand Down
10 changes: 3 additions & 7 deletions src/CHIPBindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4888,13 +4888,9 @@ int hipGetBackendNativeHandles(uintptr_t Stream, uintptr_t *NativeHandles,
logError("hipGetBackendNativeHandles: both NativeHandles and NumHandles "
"are null");
return hipErrorInvalidValue;
} else if (NativeHandles && !NumHandles) {
logError("hipGetBackendNativeHandles: NativeHandles is not null but "
"NumHandles is null");
return hipErrorInvalidValue;
} else if (!NativeHandles && NumHandles) {
logError("hipGetBackendNativeHandles: NativeHandles is null but NumHandles "
"is not null");
} else if (NativeHandles && NumHandles) {
logError("hipGetBackendNativeHandles: both NativeHandles and NumHandles "
"are not null");
return hipErrorInvalidValue;
}

Expand Down

0 comments on commit 75708d7

Please sign in to comment.