Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrancepillois committed Jan 16, 2024
1 parent 0e71192 commit 024f32d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions source/adapters/hip/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,6 @@

extern size_t imageElementByteSize(hipArray_Format ArrayFormat);

namespace {

static size_t imageElementByteSize(hipArray_Format ArrayFormat) {
switch (ArrayFormat) {
case HIP_AD_FORMAT_UNSIGNED_INT8:
case HIP_AD_FORMAT_SIGNED_INT8:
return 1;
case HIP_AD_FORMAT_UNSIGNED_INT16:
case HIP_AD_FORMAT_SIGNED_INT16:
case HIP_AD_FORMAT_HALF:
return 2;
case HIP_AD_FORMAT_UNSIGNED_INT32:
case HIP_AD_FORMAT_SIGNED_INT32:
case HIP_AD_FORMAT_FLOAT:
return 4;
default:
detail::ur::die("Invalid image format.");
}
return 0;
}

} // namespace

UR_APIEXPORT ur_result_t UR_APICALL enqueueEventsWait(
ur_queue_handle_t, hipStream_t Stream, uint32_t NumEventsInWaitList,
Expand Down

0 comments on commit 024f32d

Please sign in to comment.