Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rank-specialized interfaces for batched HIP/ROCm functions likely won't work #82

Open
domcharrier opened this issue Feb 24, 2022 · 0 comments
Labels
bug Something isn't working testing Issue describing testing needs or current testing infrastructure deficiencies

Comments

@domcharrier
Copy link
Contributor

domcharrier commented Feb 24, 2022

  • Rank-specialized interfaces for batched HIP/ROCm functions are not usable in the current state as
    the backend expects a pointer to pointer as argument, which cannot be mapped to a multidimensional Fortran array.

  • However, the direct bindings might work by passing the first element of a contiguous array of type(c_ptr) type to the backend, i.e. something like this:

type(c_ptr),dimension(5) :: mybatch

! allocate the batch items
...
!
! Call the HIP/ROCm binding or interface and pass the first element:
ierr = myhipfunction_batched(... mybatch(1))

Further testing is necessary to confirm that this works.

@domcharrier domcharrier added bug Something isn't working testing Issue describing testing needs or current testing infrastructure deficiencies labels Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing Issue describing testing needs or current testing infrastructure deficiencies
Projects
None yet
Development

No branches or pull requests

1 participant