Skip to content

Commit

Permalink
Use chklapackerror as done in LinearAlgebra.LAPACK.potrs!
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanYashchuk committed Jun 3, 2020
1 parent 5e705d7 commit 9b1aa9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/cusolver/wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -966,9 +966,7 @@ for (jname, fname, elty) in ((:potrsBatched!, :cusolverDnSpotrsBatched, :Float32
# Copy the solver info and delete the device memory
info = @allowscalar devinfo[1]
unsafe_free!(devinfo)
if info < 0
throw(ArgumentError("The $(info)th parameter is wrong"))
end
chklapackerror(BlasInt(info))

return B
end
Expand Down

0 comments on commit 9b1aa9f

Please sign in to comment.