Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ program solve_batched_linear_systems

! Allocate memory for linear algebra computations
allocate (a(stride_a, batch_size), b(n, batch_size*nrhs), &
#if !defined(_OPENMP)
ipiv(stride_ipiv, batch_size), &
#endif
info_rf(batch_size), info_rs(batch_size), &
stat = allocstat, errmsg = allocmsg)
if (allocstat > 0) stop trim(allocmsg)
Expand Down Expand Up @@ -188,9 +186,5 @@ program solve_batched_linear_systems
print *, 'Total time:', total_time, 'seconds'

! Clean up
#if defined(_OPENMP)
deallocate (a, b, a_orig, b_orig, x, info_rf, info_rs)
#else
deallocate (a, b, a_orig, b_orig, x, ipiv, info_rf, info_rs)
#endif
end program solve_batched_linear_systems