Skip to content

Commit

Permalink
Fix for the broken --config=rocm build.
Browse files Browse the repository at this point in the history
Note: This ia a different PR from PRs tensorflow#28189 and tensorflow#28263 (same symptom, different cause and fix)

The `--config=rocm` build was broken by the following commit.

tensorflow@481748b

The changes made by the above commit had one bug in the changes for the ROCm platform, whias was leading to the build failure. Fixing that bug to make the `--config=rocm` build working again.
  • Loading branch information
deven-amd committed Apr 30, 2019
1 parent b3150a3 commit 9e66d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/stream_executor/rocm/rocm_driver.cc
Original file line number Diff line number Diff line change
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

0 comments on commit 9e66d22

Please sign in to comment.