From bd55f340a0e52ea309e4982811c061ebf4412b8e Mon Sep 17 00:00:00 2001 From: Conan Truong Date: Fri, 25 Jul 2025 15:23:42 -0700 Subject: [PATCH] Bump PytorchTorch pin to 0725 (#12863) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/12863 Needed for pytorch/pytorch#158580 Reviewed By: JacobSzwejbka Differential Revision: D78989384 --- .ci/docker/ci_commit_pins/pytorch.txt | 2 +- install_requirements.py | 2 +- .../portable_type/c10/torch/headeronly/macros/Macros.h | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.ci/docker/ci_commit_pins/pytorch.txt b/.ci/docker/ci_commit_pins/pytorch.txt index 993fc34f5f5..6305196d2ad 100644 --- a/.ci/docker/ci_commit_pins/pytorch.txt +++ b/.ci/docker/ci_commit_pins/pytorch.txt @@ -1 +1 @@ -2dccff7dcf56b0d168ebfd7ca08bdeca37273c56 +6fc0ad22f0a07b6f38d138861c56a765d5a9bb02 diff --git a/install_requirements.py b/install_requirements.py index a2372a12bb9..978cc8a84b2 100644 --- a/install_requirements.py +++ b/install_requirements.py @@ -71,7 +71,7 @@ def python_is_compatible(): # # NOTE: If you're changing, make the corresponding change in .ci/docker/ci_commit_pins/pytorch.txt # by picking the hash from the same date in https://hud.pytorch.org/hud/pytorch/pytorch/nightly/ -NIGHTLY_VERSION = "dev20250723" +NIGHTLY_VERSION = "dev20250725" def install_requirements(use_pytorch_nightly): diff --git a/runtime/core/portable_type/c10/torch/headeronly/macros/Macros.h b/runtime/core/portable_type/c10/torch/headeronly/macros/Macros.h index 1e07ab0446e..3a4fc393696 100644 --- a/runtime/core/portable_type/c10/torch/headeronly/macros/Macros.h +++ b/runtime/core/portable_type/c10/torch/headeronly/macros/Macros.h @@ -412,6 +412,13 @@ extern SYCL_EXTERNAL void __assert_fail( const char* file, unsigned int line, const char* func); +#elif (defined(__EMSCRIPTEN__)) +// As defined in assert.h in the Emscripten stdlib +_Noreturn void __assert_fail( + const char* expr, + const char* file, + int line, + const char* func); #else // __SYCL_DEVICE_ONLY__ #if (defined(__CUDA_ARCH__) && !(defined(__clang__) && defined(__CUDA__))) // CUDA supports __assert_fail function which are common for both device