py-torch: patch FindBLAS.cmake (#50273)

Pulls in the patch from https://github.com/pytorch/pytorch/pull/145849 to fix the following error:

    CMake Error at cmake/Modules/FindBLAS.cmake:85 (check_function_exists):
      Unknown CMake command "check_function_exists".
This commit is contained in:
Mike Nolta 2025-05-02 04:39:19 -04:00 committed by GitHub
parent 95c26245c1
commit 5b352c3088
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -346,6 +346,13 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
when="@2.6:",
)
# Fixes 'FindBLAS.cmake' error: unknown command check_function_exists
patch(
"https://github.com/pytorch/pytorch/pull/145849.patch?full_index=1",
sha256="5675ab543b786b8f360de451b27b3eb5d3ce8499d6c1a207f4a854f0c473ab03",
when="@:2.6",
)
# https://github.com/pytorch/pytorch/issues/90448
patch(
"https://github.com/pytorch/pytorch/pull/97270.patch?full_index=1",