Merge pull request #31933 from yifeif/cherrypicks_609B5
[r1.15 cherrypick] Add a note to ignore dlerror for CPU-only pip package
This commit is contained in:
commit
165b34d99a
@ -25,7 +25,11 @@ void* GetDsoHandle() {
|
|||||||
static auto handle = []() -> void* {
|
static auto handle = []() -> void* {
|
||||||
auto handle_or =
|
auto handle_or =
|
||||||
stream_executor::internal::DsoLoader::GetCudaRuntimeDsoHandle();
|
stream_executor::internal::DsoLoader::GetCudaRuntimeDsoHandle();
|
||||||
if (!handle_or.ok()) return nullptr;
|
if (!handle_or.ok()) {
|
||||||
|
LOG(INFO) << "Ignore above cudart dlerror if you do not have a GPU set "
|
||||||
|
"up on your machine.";
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
return handle_or.ValueOrDie();
|
return handle_or.ValueOrDie();
|
||||||
}();
|
}();
|
||||||
return handle;
|
return handle;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user