Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ROCm] Fix for the broken --config=rocm build. #28286

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tensorflow/stream_executor/rocm/rocm_driver.cc
Expand Up @@ -305,8 +305,8 @@ static port::Status InternalInit() {
/* static */ port::Status GpuDriver::Init() {
// Cached return value from calling InternalInit(), as hipInit need only be
// called once, but GpuDriver::Init may be called many times.
static port::Status* init_retval = [&] {
init_retval = new Status(InternalInit());
static port::Status* init_retval = [] {
return new port::Status(InternalInit());
}();
return *init_retval;
}
Expand Down