Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/fft/fft.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ mutable struct cROCFFTPlan{T,K,inplace,N,R,B} <: ROCFFTPlan{T, K, inplace}
rocfft_execution_info_create(info_ref)
info = info_ref[]

# assign to the current stream
stream = AMDGPU.stream()
rocfft_execution_info_set_stream(info, stream)
if length(workarea) > 0
Expand Down Expand Up @@ -99,11 +98,8 @@ end

function update_stream!(plan::ROCFFTPlan)
new_stream = AMDGPU.stream()
if plan.stream != new_stream
plan.stream = new_stream
info = plan.execution_info
rocfft_execution_info_set_stream(info, new_stream)
end
plan.stream = new_stream
rocfft_execution_info_set_stream(plan.execution_info, new_stream)
return
end

Expand Down