Skip to content

Conversation

@mmakevic-amd
Copy link
Contributor

After this change 8e6b84b, following build error occurred:

In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers

@i-chaochen
Copy link
Contributor

Hi @xla-rotation please take a look.

copybara-service bot pushed a commit that referenced this pull request Feb 13, 2025
Imported from GitHub PR #22572

After this change 8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

FUTURE_COPYBARA_INTEGRATE_REVIEW=#22572 from ROCm:ci_build_fix_250211 69268a6
PiperOrigin-RevId: 725970892
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Feb 13, 2025
Imported from GitHub PR openxla/xla#22572

After this change openxla/xla@8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a699eb07efb65be4e42087f75d504f750a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#22572 from ROCm:ci_build_fix_250211 69268a699eb07efb65be4e42087f75d504f750a6
PiperOrigin-RevId: 725970892
copybara-service bot pushed a commit that referenced this pull request Feb 13, 2025
Imported from GitHub PR #22572

After this change 8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

FUTURE_COPYBARA_INTEGRATE_REVIEW=#22572 from ROCm:ci_build_fix_250211 69268a6
PiperOrigin-RevId: 725970892
copybara-service bot pushed a commit that referenced this pull request Feb 13, 2025
Imported from GitHub PR #22572

After this change 8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

FUTURE_COPYBARA_INTEGRATE_REVIEW=#22572 from ROCm:ci_build_fix_250211 69268a6
PiperOrigin-RevId: 725970892
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Feb 13, 2025
Imported from GitHub PR openxla/xla#22572

After this change openxla/xla@8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a699eb07efb65be4e42087f75d504f750a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#22572 from ROCm:ci_build_fix_250211 69268a699eb07efb65be4e42087f75d504f750a6
PiperOrigin-RevId: 725970892
copybara-service bot pushed a commit that referenced this pull request Feb 13, 2025
Imported from GitHub PR #22572

After this change 8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

FUTURE_COPYBARA_INTEGRATE_REVIEW=#22572 from ROCm:ci_build_fix_250211 69268a6
PiperOrigin-RevId: 725970892
copybara-service bot pushed a commit that referenced this pull request Feb 13, 2025
Imported from GitHub PR #22572

After this change 8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

FUTURE_COPYBARA_INTEGRATE_REVIEW=#22572 from ROCm:ci_build_fix_250211 69268a6
PiperOrigin-RevId: 725970892
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Feb 13, 2025
Imported from GitHub PR openxla/xla#22572

After this change openxla/xla@8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a699eb07efb65be4e42087f75d504f750a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#22572 from ROCm:ci_build_fix_250211 69268a699eb07efb65be4e42087f75d504f750a6
PiperOrigin-RevId: 725970892
copybara-service bot pushed a commit that referenced this pull request Feb 13, 2025
FUTURE_COPYBARA_INTEGRATE_REVIEW=#22572 from ROCm:ci_build_fix_250211 69268a6
PiperOrigin-RevId: 726347944
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Feb 13, 2025
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#22572 from ROCm:ci_build_fix_250211 69268a699eb07efb65be4e42087f75d504f750a6
PiperOrigin-RevId: 726347944
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Feb 13, 2025
Imported from GitHub PR openxla/xla#22572

After this change openxla/xla@8e6b84b, following build error occurred:

```
In file included from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/backends/cpu/runtime/convolution_thunk_internal.h: In lambda function:
./xla/backends/cpu/runtime/convolution_thunk_internal.h:345:71: error: no matching function for call to ‘tsl::CountDownAsyncValueRef<tsl::Chain>::CountDown() const’
  345 |           auto on_done = [count_down]() mutable { count_down.CountDown(); };
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from ./xla/backends/cpu/runtime/convolution_thunk_internal.h:26,
                 from xla/backends/cpu/runtime/convolution_thunk_f16.cc:16:
./xla/tsl/concurrency/async_value_ref.h:867:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(size_t, const absl::lts_20230802::Status&) [with T = tsl::Chain; size_t = long unsigned int]’
  867 |   bool CountDown(size_t count, const absl::Status& status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:867:8: note:   candidate expects 2 arguments, 0 provided
./xla/tsl/concurrency/async_value_ref.h:919:8: note: candidate: ‘bool tsl::CountDownAsyncValueRef<T>::CountDown(absl::lts_20230802::Status) [with T = tsl::Chain]’ (near match)
  919 |   bool CountDown(absl::Status status = absl::OkStatus()) {
      |        ^~~~~~~~~
./xla/tsl/concurrency/async_value_ref.h:919:8: note:   passing ‘const tsl::CountDownAsyncValueRef<tsl::Chain>*’ as ‘this’ argument discards qualifiers
```
Copybara import of the project:

--
69268a699eb07efb65be4e42087f75d504f750a6 by Milica Makevic <[email protected]>:

Allow modification of captured variable in nested lambda

Merging this change closes #22572

PiperOrigin-RevId: 726463713
gharibian added a commit to gharibian/serving that referenced this pull request Apr 9, 2025
gharibian added a commit to tensorflow/serving that referenced this pull request Apr 9, 2025
Added github.com/openxla/xla/pull/22572 into tensorflow.patch to resolve breakage.
@alekstheod alekstheod deleted the ci_build_fix_250211 branch July 3, 2025 08:09
@alekstheod alekstheod restored the ci_build_fix_250211 branch July 15, 2025 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants