Skip to content

[oneMKL] Fix batched linear solver sample page fault #2281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2024
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