Skip to content

Commit

Permalink
OpenVX HIP GPU backend - fix failures reported in issue #56 for HIP b…
Browse files Browse the repository at this point in the history
…ackend
  • Loading branch information
AryanSalmanpour committed Sep 8, 2021
1 parent 1d4b108 commit c791c34
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 71 deletions.
10 changes: 5 additions & 5 deletions amd_openvx/openvx/ago/ago_kernel_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18428,7 +18428,7 @@ int agoKernel_Remap_U8_U8_Bilinear(AgoNode * node, AgoKernelCommand cmd)
node->hip_stream0, oImg->u.img.width, oImg->u.img.height,
oImg->hip_memory + oImg->gpu_buffer_offset,oImg->u.img.stride_in_bytes,
iImg->u.img.width, iImg->u.img.height,
iImg->hip_memory + iImg->gpu_buffer_offset, iImg->u.img.stride_in_bytes,
iImg->hip_memory + iImg->gpu_buffer_offset, iImg->u.img.stride_in_bytes, iImg->size,
(ago_coord2d_ushort_t *)iMap->hip_memory,
iMap->u.remap.dst_width * sizeof(ago_coord2d_ushort_t))) {
status = VX_FAILURE;
Expand Down Expand Up @@ -19010,7 +19010,7 @@ int agoKernel_WarpAffine_U8_U8_Nearest(AgoNode * node, AgoKernelCommand cmd)
oImg->hip_memory + oImg->gpu_buffer_offset,oImg->u.img.stride_in_bytes,
iImg->u.img.width, iImg->u.img.height,
iImg->hip_memory + iImg->gpu_buffer_offset, iImg->u.img.stride_in_bytes,
(ago_affine_matrix_t *)(iMat->hip_memory + iMat->gpu_buffer_offset))) {
iImg->size, (ago_affine_matrix_t *)(iMat->hip_memory + iMat->gpu_buffer_offset))) {
status = VX_FAILURE;
}
}
Expand Down Expand Up @@ -19222,7 +19222,7 @@ int agoKernel_WarpAffine_U8_U8_Bilinear(AgoNode * node, AgoKernelCommand cmd)
oImg->hip_memory + oImg->gpu_buffer_offset,oImg->u.img.stride_in_bytes,
iImg->u.img.width, iImg->u.img.height,
iImg->hip_memory + iImg->gpu_buffer_offset, iImg->u.img.stride_in_bytes,
(ago_affine_matrix_t *)(iMat->hip_memory + iMat->gpu_buffer_offset))) {
iImg->size, (ago_affine_matrix_t *)(iMat->hip_memory + iMat->gpu_buffer_offset))) {
status = VX_FAILURE;
}
}
Expand Down Expand Up @@ -19419,7 +19419,7 @@ int agoKernel_WarpPerspective_U8_U8_Nearest(AgoNode * node, AgoKernelCommand cmd
node->hip_stream0, oImg->u.img.width, oImg->u.img.height,
oImg->hip_memory + oImg->gpu_buffer_offset,oImg->u.img.stride_in_bytes,
iImg->u.img.width, iImg->u.img.height,
iImg->hip_memory + iImg->gpu_buffer_offset, iImg->u.img.stride_in_bytes,
iImg->hip_memory + iImg->gpu_buffer_offset, iImg->u.img.stride_in_bytes, iImg->size,
(ago_perspective_matrix_t *)(iMat->hip_memory + iMat->gpu_buffer_offset))) {
status = VX_FAILURE;
}
Expand Down Expand Up @@ -19634,7 +19634,7 @@ int agoKernel_WarpPerspective_U8_U8_Bilinear(AgoNode * node, AgoKernelCommand cm
oImg->hip_memory + oImg->gpu_buffer_offset,oImg->u.img.stride_in_bytes,
iImg->u.img.width, iImg->u.img.height,
iImg->hip_memory + iImg->gpu_buffer_offset, iImg->u.img.stride_in_bytes,
(ago_perspective_matrix_t *)(iMat->hip_memory + iMat->gpu_buffer_offset))) {
iImg->size, (ago_perspective_matrix_t *)(iMat->hip_memory + iMat->gpu_buffer_offset))) {
status = VX_FAILURE;
}
}
Expand Down
Loading

0 comments on commit c791c34

Please sign in to comment.