From 801d1108b5e2ca224a5a1de3c295fa7f8874ccb2 Mon Sep 17 00:00:00 2001 From: Ayan Das Date: Fri, 8 Aug 2025 23:27:46 +0530 Subject: gnu: python-pytorch: Update to 2.8.0. * gnu/packages/machine-learning.scm (python-pytorch): Update to 2.8.0. [source]: Update hash. Update CUDA kernel deletion paths. [arguments]: Add BUILD_TEST=0. Fix concurrentqueue includes. Fix sympy version constraint. Fix nccl skip phase. [inputs]: Add concurrentqueue and rdma-core. * gnu/packages/patches/python-pytorch-system-libraries.patch: Update for 2.8.0. * gnu/packages/patches/python-pytorch-fix-codegen.patch: Update for 2.8.0. * gnu/packages/patches/python-pytorch-without-kineto.patch: Update for 2.8.0. Change-Id: I237913636dfeaa7eb19f7d71516fd05c86373f28 Reviewed-by: David Elsing @dtelsing Signed-off-by: Sharlatan Hellseher --- gnu/packages/patches/python-pytorch-without-kineto.patch | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gnu/packages/patches/python-pytorch-without-kineto.patch') diff --git a/gnu/packages/patches/python-pytorch-without-kineto.patch b/gnu/packages/patches/python-pytorch-without-kineto.patch index 896e11dcc26..8d3641231ec 100644 --- a/gnu/packages/patches/python-pytorch-without-kineto.patch +++ b/gnu/packages/patches/python-pytorch-without-kineto.patch @@ -2,11 +2,11 @@ Even when building without Kineto, the header is still imported and the ActivityType type is used. This patch was copied from https://github.com/pytorch/pytorch/pull/111048 and adapted. -diff --git a/torch/csrc/profiler/kineto_shim.h b/torch/csrc/profiler/kineto_shim.h -index 7a3b788..7f49d18 100644 ---- a/torch/csrc/profiler/kineto_shim.h -+++ b/torch/csrc/profiler/kineto_shim.h -@@ -12,7 +12,55 @@ +diff --git i/torch/csrc/profiler/kineto_shim.h w/torch/csrc/profiler/kineto_shim.h +index c4efd7785b7..20cc657961c 100644 +--- i/torch/csrc/profiler/kineto_shim.h ++++ w/torch/csrc/profiler/kineto_shim.h +@@ -12,7 +12,56 @@ #undef USE_KINETO #endif @@ -49,6 +49,7 @@ index 7a3b788..7f49d18 100644 + HPU_OP, // HPU host side runtime event + XPU_RUNTIME, // host side xpu runtime events + MTIA_WORKLOADD, ++ MTIA_INSIGHT, // MTIA insight events (new in 2.8.0) + + PRIVATEUSE1_RUNTIME, + PRIVATEUSE1_DRIVER, -- cgit v1.3