Skip to content

Commit 01452ad

Browse files
Varun Purifacebook-github-bot
authored andcommitted
executor_runner on iOS fixes (#1364)
Summary: Pull Request resolved: #1364 A few fixes to the iOS benchmark 1. Ignore `-wShadow` since this was failing due to EXECUTORCH_SCOPE_PROF in the profiler/event tracer 2. Platform-specific headers in iOS build. Defining `IOS_BENCHMARK` in the `PyTorchBenchmark` build rule does not propagate to dependencies, so the `executor_runner_lib` was building without this definition 3. Remove deprecated `generate_etdump` flag from controlling program flow 4. Add build options to `PyTorchBenchmark` build config Reviewed By: kirklandsign Differential Revision: D51825112 fbshipit-source-id: d9734e255b3e6ea98412dbfb36a3be287ea38992
1 parent 0e98e88 commit 01452ad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

runtime/executor/program.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#define ET_ENABLE_PROGRAM_VERIFICATION 1
2828
#endif
2929

30+
#pragma clang diagnostic ignored "-Wshadow"
31+
3032
namespace torch {
3133
namespace executor {
3234

0 commit comments

Comments
 (0)