diff --git a/.github/actions/deploy-macosx/action.yml b/.github/actions/deploy-macosx/action.yml index 7eb7763ce0..29521d386e 100644 --- a/.github/actions/deploy-macosx/action.yml +++ b/.github/actions/deploy-macosx/action.yml @@ -25,8 +25,8 @@ runs: fi brew uninstall --force --ignore-dependencies gcc gcc@7 gcc@8 gcc@9 gcc@10 gcc@11 gcc@12 gcc@13 gcc@14 little-cms2 maven openblas r - brew install boost ccache swig autoconf-archive automake cmake libomp libtool libusb ant nasm xz pkg-config sdl2 gpg1 bison flex perl ragel binutils gmp isl libmpc mpfr geoip pcre ssdeep yajl - brew install --ignore-dependencies gradle # Don't try to overwrite Apple-provided Python + brew install boost ccache swig autoconf-archive automake cmake libomp libtool libusb ant nasm xz pkg-config sdl2 gpg1 bison flex perl ragel binutils gradle gmp isl libmpc mpfr geoip pcre ssdeep yajl + # echo Installing an older less buggy version of CMake # curl -LO https://raw.githubusercontent.com/Homebrew/homebrew-core/30a3e5e02420a515f9bad02e3cfcde95316db529/Formula/cmake.rb # brew unlink cmake diff --git a/.github/workflows/pytorch.yml b/.github/workflows/pytorch.yml index 6a07484179..dd85acec74 100644 --- a/.github/workflows/pytorch.yml +++ b/.github/workflows/pytorch.yml @@ -37,7 +37,7 @@ jobs: steps: - uses: HGuillemet/javacpp-presets/.github/actions/deploy-macosx@hg_pytorch macosx-x86_64: - runs-on: macos-13 + runs-on: macos-12 steps: - uses: HGuillemet/javacpp-presets/.github/actions/deploy-macosx@hg_pytorch windows-x86_64: diff --git a/pytorch/cppbuild.sh b/pytorch/cppbuild.sh index 94a0c7f346..ee70d1d7c6 100755 --- a/pytorch/cppbuild.sh +++ b/pytorch/cppbuild.sh @@ -206,6 +206,11 @@ sedinplace 's/char(\(.*\))/\1/g' torch/csrc/jit/serialization/pickler.h # some windows header defines a macro named "interface" sedinplace 's/const std::string& interface)/const std::string\& interface_name)/g' torch/csrc/distributed/c10d/ProcessGroupGloo.hpp +# fix missing #include (Pytorch 2.4.0) +sedinplace 's/#include /#include \ +#include \ +#include /' torch/csrc/distributed/c10d/control_plane/Handlers.cpp + # Remove pytorch adaptations of FindOpenMP.cmake that. # On Windows without iomp and with new versions of VS 2019, including -openmp:experimental and libomp, causes # final binary to be linked to both libomp and vcomp and produce incorrect results.