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

PR #14224: Fix build error for LogicalIdThunk::buffer_uses() #70548

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

copybara-service[bot]
Copy link

PR #14224: Fix build error for LogicalIdThunk::buffer_uses()

Imported from GitHub PR openxla/xla#14224

I tried to build run_hlo_module using GCC-13

bazel build //xla/tools:run_hlo_module

and faced build error

xla/service/cpu/runtime/logical_id_thunk.cc:113:18: error: no declaration matches 'xla::cpu::BufferUses<type> xla::cpu::LogicalIdThunk<type>::buffer_uses() const'
  113 | BufferUses<type> LogicalIdThunk<type>::buffer_uses() const {
      |                  ^~~~~~~~~~~~~~~~~~~~

This PR fixes it by using Thunk::BufferUses for the output type of LogicalIdThunk<type>::buffer_uses() impl.

BufferUses alias is declared in class Thunk

Related issue: openxla/xla#14172
David, Pawel, Can you review the fix? @ddunl @pparuzel
Copybara import of the project:

--
ac0401cba4fe7c438a426ddd638c8efa9a40f2f3 by Alexander Pivovarov [email protected]:

Fix build error for LogicalIdThunk::buffer_uses()

Merging this change closes #14224

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14224 from apivovarov:fix_logical_id_thunk ac0401cba4fe7c438a426ddd638c8efa9a40f2f3

Imported from GitHub PR openxla/xla#14224

I tried to build `run_hlo_module` using GCC-13
```bash
bazel build //xla/tools:run_hlo_module
```
and faced build error
```bash
xla/service/cpu/runtime/logical_id_thunk.cc:113:18: error: no declaration matches 'xla::cpu::BufferUses<type> xla::cpu::LogicalIdThunk<type>::buffer_uses() const'
  113 | BufferUses<type> LogicalIdThunk<type>::buffer_uses() const {
      |                  ^~~~~~~~~~~~~~~~~~~~
```

This PR fixes it by using `Thunk::BufferUses` for the output type of `LogicalIdThunk<type>::buffer_uses()` impl.

`BufferUses` alias is declared in `class Thunk`

Related issue: openxla/xla#14172
David, Pawel,  Can you review the fix? @ddunl @pparuzel
Copybara import of the project:

--
ac0401cba4fe7c438a426ddd638c8efa9a40f2f3 by Alexander Pivovarov <[email protected]>:

Fix build error for LogicalIdThunk::buffer_uses()

Merging this change closes #14224

PiperOrigin-RevId: 647497158
@copybara-service copybara-service bot closed this Jun 28, 2024
@copybara-service copybara-service bot deleted the exported_pr_647481278 branch June 28, 2024 01:15
@copybara-service copybara-service bot merged commit ecff54a into master Jun 28, 2024
1 check passed
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.

tensorflow/tensorflow:1.4.0-devel-gpu uses libcuda.so stub at runtime
1 participant