mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-07-02 05:10:31 +08:00
Bug 5241914: Fix the error message for cuSolverDn_LinearSolver
This commit is contained in:
parent
49159f3739
commit
b27b55ec70
@ -260,7 +260,7 @@ int linearSolverQR(cusolverDnHandle_t handle, int n, const double *Acopy, int ld
|
|||||||
checkCudaErrors(cudaMemcpy(&h_info, info, sizeof(int), cudaMemcpyDeviceToHost));
|
checkCudaErrors(cudaMemcpy(&h_info, info, sizeof(int), cudaMemcpyDeviceToHost));
|
||||||
|
|
||||||
if (0 != h_info) {
|
if (0 != h_info) {
|
||||||
fprintf(stderr, "Error: LU factorization failed\n");
|
fprintf(stderr, "Error: QR factorization failed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
checkCudaErrors(cudaMemcpy(x, b, sizeof(double) * n, cudaMemcpyDeviceToDevice));
|
checkCudaErrors(cudaMemcpy(x, b, sizeof(double) * n, cudaMemcpyDeviceToDevice));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user