File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 2
2
# They'll be accessible for all processes on the host, also in the development image.
3
3
release_env :
4
4
common :
5
- CC : " /usr/lib/llvm-{{ clang_version }}/bin/clang "
6
- CXX : " /usr/lib/llvm-{{ clang_version }}/bin/clang "
5
+ CC : gcc-10
6
+ CXX : g++-10
7
7
LD_LIBRARY_PATH : " $LD_LIBRARY_PATH:/usr/local/lib"
8
8
9
9
tpu :
@@ -21,8 +21,8 @@ build_env:
21
21
# Set explicitly to 0 as setup.py defaults this flag to true if unset.
22
22
BUILD_CPP_TESTS : " {{ build_cpp_tests }}"
23
23
# Force GCC because clang/bazel has issues.
24
- CC : " /usr/lib/llvm-{{ clang_version }}/bin/clang "
25
- CXX : " /usr/lib/llvm-{{ clang_version }}/bin/clang "
24
+ CC : gcc-10
25
+ CXX : g++-10
26
26
PYTORCH_BUILD_NUMBER : 1
27
27
TORCH_XLA_VERSION : " {{ package_version }}"
28
28
PYTORCH_BUILD_VERSION : " {{ package_version }}"
@@ -45,3 +45,7 @@ build_env:
45
45
ACCELERATOR : tpu
46
46
TPUVM_MODE : 1
47
47
BUNDLE_LIBTPU : " {{ bundle_libtpu }}"
48
+
49
+ clang_compiler :
50
+ CC : /usr/lib/{{ clang_version }}/bin/clang
51
+ CXX : /usr/lib/{{ clang_version }}/bin/clang++
Original file line number Diff line number Diff line change 82
82
combine(build_env[arch] | default({}, true)) |
83
83
combine(build_env[accelerator] | default({}, true))
84
84
}}"
85
+ clang_compiler : " {{ clang_compiler }}"
85
86
when : stage == "build"
86
87
tags : build_srcs
87
88
92
93
build_env.common | default({}, true) |
93
94
combine(build_env[arch] | default({}, true)) |
94
95
combine(build_env[accelerator] | default({}, true))
96
+ combine(clang_compiler)
95
97
}}"
96
98
when : stage == "build_plugin"
97
99
tags : build_plugin
Original file line number Diff line number Diff line change 46
46
ansible.builtin.command :
47
47
cmd : python setup.py bdist_wheel
48
48
chdir : " {{ (src_root, 'pytorch/xla') | path_join }}"
49
- environment : " {{ env_vars }}"
49
+ environment : " {{ env_vars | combine(clang_compiler) }}"
50
50
51
51
- name : Find XLA *.whl files in pytorch/xla/dist
52
52
ansible.builtin.find :
You can’t perform that action at this time.
0 commit comments