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

Correct cufft_utils scaling_kernel indexing #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

icyveins7
Copy link

@icyveins7 icyveins7 commented Jul 7, 2024

The scaling_kernel was clearly designed to be a grid-stride kernel to multiply all elements by a constant; this correction makes it so.

While the examples currently build and run correctly as-is, if the parameters are changed (like in 1d_r2c_c2r) to be a larger value, it becomes highly likely that the output will be wrong, as only a few elements will be 'scaled' multiple times.

is clearly meant to be a grid-stride
@JanuszL JanuszL added the cuFFT label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants