Change error level to warning

This commit is contained in:
bhack 2020-05-28 19:00:57 +02:00 committed by GitHub
parent 2de551ba87
commit 0d687877e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -308,9 +308,11 @@ static port::Status InternalInit() {
if (res == CUDA_SUCCESS) {
return port::Status::OK();
} else if (res == CUDA_ERROR_SHARED_OBJECT_INIT_FAILED) {
LOG(WARNING) << "failed call to cuInit: " << ToString(res);
} else {
LOG(ERROR) << "failed call to cuInit: " << ToString(res);
}
LOG(ERROR) << "failed call to cuInit: " << ToString(res);
Diagnostician::LogDiagnosticInformation();
return port::Status(port::error::ABORTED,
absl::StrCat("failed call to cuInit: ", ToString(res)));