From e934e90a09042557b5ea52957f457a89d1d91c78 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Polanco Date: Mon, 18 Nov 2024 17:00:53 +0100 Subject: [PATCH] Fix scalar indexing error on latest AMDGPU.jl --- CHANGELOG.md | 7 +++++++ Project.toml | 2 +- src/Kernels/Kernels.jl | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e2428a..3fa6ea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [v0.6.5](https://github.com/jipolanco/NonuniformFFTs.jl/releases/tag/v0.6.5) - 2024-11-18 + +### Fixed + +- Fix scalar indexing error on latest AMDGPU.jl (v1.1.1). + Not sure exactly if it's a recent change in AMDGPU.jl, or maybe in GPUArrays.jl, which caused the error. + ## [v0.6.4](https://github.com/jipolanco/NonuniformFFTs.jl/releases/tag/v0.6.4) - 2024-11-17 ### Changed diff --git a/Project.toml b/Project.toml index fbadadb..1a96ffb 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "NonuniformFFTs" uuid = "cd96f58b-6017-4a02-bb9e-f4d81626177f" authors = ["Juan Ignacio Polanco "] -version = "0.6.4" +version = "0.6.5" [deps] AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" diff --git a/src/Kernels/Kernels.jl b/src/Kernels/Kernels.jl index 20f0959..c9b94b5 100644 --- a/src/Kernels/Kernels.jl +++ b/src/Kernels/Kernels.jl @@ -100,7 +100,7 @@ function init_fourier_coefficients!(g::AbstractKernelData, ks::AbstractVector) resize!(gk, Nk) @assert eachindex(gk) == eachindex(ks) f = evaluate_fourier_func(g) - map!(f, gk, ks) + @. gk = f(ks) gk end