-
Notifications
You must be signed in to change notification settings - Fork 5
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
Question about input views #148
Comments
As you said, some backend may modify the input, so we cannot always ensure that.
What errors did you get? |
Yes but then the question is how to inform the user ? We can add something in the documentation but that can easily be missed. Can we do something at the API level ? Can we use different functions in the backends to avoid having an input view that is in fact input/ouptut ?
|
In our API, I find that const InViewType& in, OutViewType& out is a bit confusing for non-expert users. It looks like an API for unique owning containers like |
If I remembered, input data are unchanged except for
|
We have: https://docs.nvidia.com/cuda/cufft/index.html#data-layout
|
I guess it refers to an internal buffer inside a |
I don't understand why you interpret it like this ? |
For example, they explain about buffers in Fourier Transform Setup. |
In my opinion they use both "data" and "buffer" to refer to inputs and outputs. |
That is confusing. If that is the case, we cannot guarantee a constant input for R2C and C2R transforms. |
Let's test to see if it is true or not |
Unfortunately, it changed the input for |
ok :/ |
Are users guaranteed that input views will not be modified ? I know that some backend cannot guarantee that for R2C or C2R transformations. What about KokkosFFT ?
I tried to pass a
Kokkos::View<const Kokkos::complex<double>*>
as an input view but it failed to compile.The text was updated successfully, but these errors were encountered: