You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the buffer member is defined as void** and if I have a constant array of pointers, the compiler emits warning that I cast void* const* to void**. I would suggest changing all Type** members to Type* const* unless the pointers is modified by VkFFT. It is the same story for VkFFTLaunchParams. Example:
One more idea: for input buffers it may be convinient to use const void* const* to indicate that the input data are never overwritten (only for CUDA, HIP and LevelZero).
Thanks a lot!
David
The text was updated successfully, but these errors were encountered:
Hi,
I have noticed that most of the parameters passed to VkFFT are passed by address, for example:
void* buffer = ...; VkFFTConfiguration config{}; config.buffer = &buffer;
The problem is that the
buffer
member is defined asvoid**
and if I have a constant array of pointers, the compiler emits warning that I castvoid* const*
tovoid**
. I would suggest changing allType**
members toType* const*
unless the pointers is modified by VkFFT. It is the same story forVkFFTLaunchParams
. Example:One more idea: for input buffers it may be convinient to use
const void* const*
to indicate that the input data are never overwritten (only for CUDA, HIP and LevelZero).Thanks a lot!
David
The text was updated successfully, but these errors were encountered: