Commit 3629fc4e authored by codrut3's avatar codrut3 Committed by drpngx
Browse files

Add a mutex in cuda_solvers GetrfImpl. (#14492)

* Add a mutex in cuda_solvers GetrfImpl.

The NVIDIA documentation claims the cuSolverDn functions
are thread-safe. However, issue #13558 gives an example
of code where two threads simultaneously call GetrfImpl
and a segmentation fault occurs. Although one can not prove
the bug is in the NVIDIA code, this is most likely the case.

Note that GetrsImpl was already protected by a lock
for a similar reason.

* Revert changes to cuda_solvers.

The mutex was already added by a different commit.
parent c17d085f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment