We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6ab739 commit 09d9fdaCopy full SHA for 09d9fda
src/fft/fft.jl
@@ -88,6 +88,7 @@ function update_stream!(plan::ROCFFTPlan)
88
new_stream = AMDGPU.stream()
89
if plan.stream != new_stream
90
plan.stream = new_stream
91
+ info = plan.execution_info
92
rocfft_execution_info_set_stream(info, new_stream)
93
end
94
return
test/rocarray/fft.jl
@@ -334,4 +334,19 @@ end
334
335
336
337
+@testset "Asynchronous" begin
338
+ X = rand(Float32, 10, 10)
339
+ d_X = ROCArray(X)
340
+
341
+ p = plan_rfft(X)
342
+ d_p = plan_rfft(d_X)
343
344
+ Y = p * X
345
346
+ task = Threads.@spawn d_p * d_X # executes FFT on separate AMDGPU stream
347
+ d_Y = fetch(task)
348
349
+ @test isapprox(collect(d_Y), Y; rtol=MYRTOL, atol=MYATOL)
350
+end
351
352
end # testset FFT
0 commit comments