mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
Bionic support was finished back in April 2023, see https://ubuntu.com/blog/ubuntu-18-04-eol-for-devices And neither gcc-7 nor clang7 are fully compatible with c++17, update minimal tested gcc to gcc9 and clang to clang-10 Note: OpenMP support is broken in Focal's `clang9`, so move up to a `clang10` - Suppress `-Wuninitialized` in complex_test as gcc-11 fires a seemingly false-positive warning: ``` In file included from /home/malfet/git/pytorch/pytorch/c10/test/util/complex_test.cpp:1: /home/malfet/git/pytorch/pytorch/c10/test/util/complex_test_common.h: In member function ‘virtual void memory::TestMemory_ReinterpretCast_Test::TestBody()’: /home/malfet/git/pytorch/pytorch/c10/test/util/complex_test_common.h:38:25: warning: ‘z’ is used uninitialized [-Wuninitialized] 38 | c10::complex<float> zz = *reinterpret_cast<c10::complex<float>*>(&z); | ^~ /home/malfet/git/pytorch/pytorch/c10/test/util/complex_test_common.h:37:25: note: ‘z’ declared here 37 | std::complex<float> z(1, 2); | ^ ``` - Downgrade `ucc` to 2.15, as 2.16 brings an incompatible libnccl, that causes crash during the initialization - Install `pango` from condo environment for `doctr` torch bench tests to pass, as one available in the system is too new for conda - Suppress some functorch tests when used with python-3.8+dynamo, see https://github.com/pytorch/pytorch/issues/107173 Pull Request resolved: https://github.com/pytorch/pytorch/pull/105260 Approved by: https://github.com/huydhn, https://github.com/Skylion007, https://github.com/ZainRizvi, https://github.com/seemethere
6 lines
120 B
C++
6 lines
120 B
C++
#ifdef __GNUC__
|
|
#pragma GCC diagnostic ignored "-Wuninitialized"
|
|
#endif
|
|
|
|
#include <c10/test/util/complex_test_common.h>
|