pytorch/test/mobile
Nikita Shulga 36ac095ff8 Migrate PyTorch to C++17 (#85969)
With CUDA-10.2 gone we can finally do it!

This PR mostly contains build system related changes, invasive functional ones are to be followed.
Among many expected tweaks to the build system, here are few unexpected ones:
 - Force onnx_proto project to be updated to C++17 to avoid `duplicate symbols` error when compiled by gcc-7.5.0, as storage rule for `constexpr` changed in C++17, but gcc does not seem to follow it
 - Do not use `std::apply` on CUDA but rely on the built-in variant, as it results in test failures when CUDA runtime picks host rather than device function when `std::apply` is invoked from CUDA code.
 - `std::decay_t` -> `::std::decay_t` and `std::move`->`::std::move` as VC++ for some reason claims that `std` symbol is ambigious
 - Disable use of `std::aligned_alloc` on Android, as its `libc++` does not implement it.

Some prerequisites:
 - https://github.com/pytorch/pytorch/pull/89297
 - https://github.com/pytorch/pytorch/pull/89605
 - https://github.com/pytorch/pytorch/pull/90228
 - https://github.com/pytorch/pytorch/pull/90389
 - https://github.com/pytorch/pytorch/pull/90379
 - https://github.com/pytorch/pytorch/pull/89570
 - https://github.com/facebookincubator/gloo/pull/336
 - https://github.com/facebookincubator/gloo/pull/343
 - 919676fb32

Fixes https://github.com/pytorch/pytorch/issues/56055

Pull Request resolved: https://github.com/pytorch/pytorch/pull/85969
Approved by: https://github.com/ezyang, https://github.com/kulinseth
2022-12-08 02:27:48 +00:00
..
custom_build Migrate PyTorch to C++17 (#85969) 2022-12-08 02:27:48 +00:00
lightweight_dispatch [retake2][mobile] Fix lightweight dispatch OOM error by introducing selective build (#80791) 2022-07-15 18:04:25 +00:00
model_test Fix typos under benchmarks, test, and tools directories (#87975) 2022-10-29 01:26:17 +00:00
nnc Disable nnc/test_aot_compile.sh (#81196) 2022-07-11 07:07:17 +00:00
test_bytecode.py [skip ci] Set test owner for mobile tests (#66829) 2021-10-26 10:20:01 -07:00
test_lite_script_module.py Fix typos in messages under test (#89121) 2022-11-17 01:55:03 +00:00
test_lite_script_type.py skip test that is broken in head (#88759) 2022-11-15 21:33:38 +00:00
test_quantize_fx_lite_script_module.py Fix and Re-enable test_quantize_fx_lite_script_module.py (#88897) 2022-11-16 00:56:12 +00:00
test_upgrader_bytecode_table_example.cpp Update linspace and bump version nuymber to 8 (#71486) 2022-02-01 18:16:55 +00:00
test_upgrader_codegen.py Rename tools/codegen to torchgen (#76275) 2022-04-25 01:38:06 +00:00
test_upgraders.py Fix test ownership lint (#71554) 2022-01-21 18:24:42 +00:00