Skip to content

Commit

Permalink
Disable cxx abi in ansible when building pt/xla for branch r2.0 (#5332)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanbasten23 authored and wonjoolee95 committed Aug 28, 2023
1 parent 33f1cd2 commit 8e9d27b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions infra/ansible/config/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ build_env:
BAZEL_REMOTE_CACHE: 1
SILO_NAME: "cache-silo-{{ arch }}-{{ accelerator }}-{{ clang_version }}"
DISABLE_XRT: "{{ disable_xrt }}"
_GLIBCXX_USE_CXX11_ABI: 0

amd64:
ARCH: amd64
Expand Down
2 changes: 1 addition & 1 deletion infra/ansible/roles/build_srcs/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

- name: Build XLA computation client library
ansible.builtin.command:
cmd: bash build_torch_xla_libs.sh -O -D_GLIBCXX_USE_CXX11_ABI=1
cmd: bash build_torch_xla_libs.sh
chdir: "{{ (src_root, 'pytorch/xla') | path_join }}"
environment: "{{ env_vars }}"
when: build_torch_xla_libs_result.stat.exists
Expand Down

0 comments on commit 8e9d27b

Please sign in to comment.