Skip to content

Commit 8db6054

Browse files
committed
Update
[ghstack-poisoned]
2 parents b4ae461 + 450d1f9 commit 8db6054

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

.ci/scripts/utils.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ build_executorch_runner() {
158158
cmake_install_executorch_lib() {
159159
echo "Installing libexecutorch.a and libportable_kernels.a"
160160
clean_executorch_install_folders
161-
retry cmake -DBUCK2="$BUCK" \
162-
-DCMAKE_INSTALL_PREFIX=cmake-out \
161+
retry cmake -DCMAKE_INSTALL_PREFIX=cmake-out \
163162
-DCMAKE_BUILD_TYPE=Release \
164163
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
165164
-Bcmake-out .

examples/selective_build/test_selective_build.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ test_cmake_select_all_ops() {
9292
local example_dir=examples/selective_build
9393
local build_dir=cmake-out/${example_dir}
9494
rm -rf ${build_dir}
95-
retry cmake -DBUCK2="$BUCK" \
96-
-DCMAKE_BUILD_TYPE=Release \
95+
retry cmake -DCMAKE_BUILD_TYPE=Release \
9796
-DEXECUTORCH_SELECT_ALL_OPS=ON \
9897
-DCMAKE_INSTALL_PREFIX=cmake-out \
9998
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
@@ -118,8 +117,7 @@ test_cmake_select_ops_in_list() {
118117
local build_dir=cmake-out/${example_dir}
119118
# set MAX_KERNEL_NUM=22: 19 primops, add, mul
120119
rm -rf ${build_dir}
121-
retry cmake -DBUCK2="$BUCK" \
122-
-DCMAKE_BUILD_TYPE=Release \
120+
retry cmake -DCMAKE_BUILD_TYPE=Release \
123121
-DMAX_KERNEL_NUM=22 \
124122
-DEXECUTORCH_SELECT_OPS_LIST="aten::convolution.out,\
125123
aten::_native_batch_norm_legit_no_training.out,aten::hardtanh.out,aten::add.out,\
@@ -146,8 +144,7 @@ test_cmake_select_ops_in_yaml() {
146144
local example_dir=examples/selective_build
147145
local build_dir=cmake-out/${example_dir}
148146
rm -rf ${build_dir}
149-
retry cmake -DBUCK2="$BUCK" \
150-
-DCMAKE_BUILD_TYPE=Release \
147+
retry cmake -DCMAKE_BUILD_TYPE=Release \
151148
-DEXECUTORCH_SELECT_OPS_YAML=ON \
152149
-DCMAKE_INSTALL_PREFIX=cmake-out \
153150
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \

runtime/core/exec_aten/util/tensor_util_portable.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Error get_dim_order(
4343
bool tensor_has_valid_dim_order(torch::executor::Tensor t) {
4444
if (!validate_dim_order(t.dim_order().data(), t.dim_order().size())) {
4545
ET_LOG(Error, "Tensor dim order is not valid:");
46-
for (const auto d : c10::irange(t.dim())) {
46+
for ([[maybe_unused]] const auto d : c10::irange(t.dim())) {
4747
ET_LOG(
4848
Error,
4949
" dim_order(%zu): %zu",
@@ -64,7 +64,7 @@ bool tensor_is_default_or_channels_last_dim_order(torch::executor::Tensor t) {
6464
ET_LOG(
6565
Error,
6666
"Expected tensor to have default or channels last dim order, but got");
67-
for (const auto d : c10::irange(t.dim())) {
67+
for ([[maybe_unused]] const auto d : c10::irange(t.dim())) {
6868
ET_LOG(
6969
Error,
7070
" dim_order(%zu): %zu",
@@ -81,7 +81,7 @@ bool tensor_is_default_dim_order(torch::executor::Tensor t) {
8181

8282
if (!ret_val) {
8383
ET_LOG(Error, "Expected tensor to have default dim order, but got");
84-
for (const auto d : c10::irange(t.dim())) {
84+
for ([[maybe_unused]] const auto d : c10::irange(t.dim())) {
8585
ET_LOG(
8686
Error,
8787
" dim_order(%zu): %zu",
@@ -98,7 +98,7 @@ bool tensor_is_channels_last_dim_order(torch::executor::Tensor t) {
9898

9999
if (!ret_val) {
100100
ET_LOG(Error, "Expected tensor to have channels last dim order, but got");
101-
for (const auto d : c10::irange(t.dim())) {
101+
for ([[maybe_unused]] const auto d : c10::irange(t.dim())) {
102102
ET_LOG(
103103
Error,
104104
" dim_order(%zu): %zu",

0 commit comments

Comments
 (0)