Skip to content

Commit 6310039

Browse files
authored
Update lu_solve_omp_offload_optimized.F90
1 parent dff031b commit 6310039

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Libraries/oneMKL/batched_linear_solver/lu_solve_omp_offload_optimized.F90

-6
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ program solve_batched_linear_systems
9797

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

190188
! Clean up
191-
#if defined(_OPENMP)
192-
deallocate (a, b, a_orig, b_orig, x, info_rf, info_rs)
193-
#else
194189
deallocate (a, b, a_orig, b_orig, x, ipiv, info_rf, info_rs)
195-
#endif
196190
end program solve_batched_linear_systems

0 commit comments

Comments
 (0)