pytorch/tools/setup_helpers
Dhruv Matani 18a31cc044 [Mobile] Fix The Build For Model Tracer (#84755)
Summary: Currently, the model tracer build is broken because of 2 reasons:
1. A few source files are missing, resulting in missing link time symbols
2. The `TRACING_BASED` flag isn't passed correctly from the command line (specified as an evnironment variable) as a CMake flag

Both these issues were fixed.

Test Plan: Ran this command: `USE_CUDA=0 TRACING_BASED=1 python setup.py develop --cmake`

and saw that the tracer binary was built at `build/bin/model_tracer` - also ran it to ensure that it can generate a YAML file.

Differential Revision: [D39391270](https://our.internmc.facebook.com/intern/diff/D39391270)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84755
Approved by: https://github.com/cccclai
2022-09-09 18:22:24 +00:00
..
__init__.py Run Black on all of tools/ 2022-04-20 17:29:41 +00:00
BUILD.bazel Rename tools/codegen to torchgen (#76275) 2022-04-25 01:38:06 +00:00
build.bzl Rename tools/codegen to torchgen (#76275) 2022-04-25 01:38:06 +00:00
cmake_utils.py Fix use-dict-literal lint (#83718) 2022-08-24 00:26:46 +00:00
cmake.py [Mobile] Fix The Build For Model Tracer (#84755) 2022-09-09 18:22:24 +00:00
env.py Apply ufmt linter to all py files under tools (#81285) 2022-07-13 07:59:22 +00:00
gen_unboxing.py [retake][mobile] Fix lightweight dispatch OOM error by introducing selective build 2022-06-13 17:23:02 +00:00
gen_version_header.py Apply ufmt linter to all py files under tools (#81285) 2022-07-13 07:59:22 +00:00
gen.py Rename tools/codegen to torchgen (#76275) 2022-04-25 01:38:06 +00:00
generate_code.py Apply ufmt linter to all py files under tools (#81285) 2022-07-13 07:59:22 +00:00
numpy_.py Run Black on all of tools/ 2022-04-20 17:29:41 +00:00