pytorch/test/cpp/aoti_abi_check
Bin Bao 687c15c0b3 [AOTI][BE] Change test_aoti_inference to one-pass build (#164277)
Summary: To fix https://github.com/pytorch/pytorch/issues/159400. Currently, test_aoti_abi_check and test_aoti_inference need to be built in two passes, first build pytorch using the regular `pythonsetup.py develop` and then build with `CMAKE_FRESH=1 BUILD_AOT_INDUCTOR_TEST=1 python setup.py devleop`. This is cumbersome. Fix by rewriting CMakeLists.txt for test_aoti_inference to one-pass build which runs AOTI to compile models at the test time. Also update CI test script to get rid of two-pass build. For test_aoti_abi_check, it is not AOTI specific, so we make it not guarded by BUILD_AOT_INDUCTOR_TEST.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164277
Approved by: https://github.com/janeyx99
2025-10-28 17:43:22 +00:00
..
CMakeLists.txt [AOTI][BE] Change test_aoti_inference to one-pass build (#164277) 2025-10-28 17:43:22 +00:00
main.cpp
README.md
test_cast.cpp
test_devicetype.cpp Migrate DeviceType to torch/headeronly (#163999) 2025-09-30 23:13:27 +00:00
test_dtype.cpp [Reland] Migrate ScalarType to headeronly (#159911) 2025-08-06 07:36:37 +00:00
test_exception.cpp Cut a version of TORCH_ERROR_CODE_CHECK in headeronly from AOTI (#159604) 2025-08-06 00:29:56 +00:00
test_macros.cpp Reapply D77381084 / #156964: Rename torch::standalone to headeronly (#157251) 2025-06-30 23:25:30 +00:00
test_math.cpp
test_rand.cpp
test_scalartype.cpp Move toUnderlying to headeronly (#165694) 2025-10-22 05:31:16 +00:00
test_vec_half.cpp Move some of vec into headeronly in preparation for Half.h (#158976) 2025-07-29 05:43:53 +00:00
test_vec.cpp [AOTI][BE] Change test_aoti_inference to one-pass build (#164277) 2025-10-28 17:43:22 +00:00

Tests in this directory are meant to guard certain ATen/c10 util functions and data structures are implemented in a header-only fashion, to make sure AOTInductor generated CPU model code is ABI backward-compatible.