Skip to content

Commit 3e52100

Browse files
committed
warn about bad CUDA Toolkit versions
1 parent 3f9b8a4 commit 3e52100

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/proj_lambert.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ ProjLambert(;Ny, Nx, θpix=1, rotator=(0,90,0), T=Float32, storage=Array) =
4646

4747
@memoize function ProjLambert(Ny, Nx, θpix, rotator, ::Type{T}, storage) where {T}
4848

49+
if @isdefined(CUDA) && CUDA.runtime_version() >= v"11.5" && (Ny*Nx > 1024^2)
50+
@warn("For maps with >1024² pixels, CUDA Toolkit >= 11.5 is known to have FFT instabilties, please downgrade.")
51+
end
52+
4953
# storage might be e.g. CuArrayAdaptor which will force T to be Float32
5054
T′ = eltype(adapt(storage, Vector{T}()))
5155

0 commit comments

Comments
 (0)