summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-pytorch-without-kineto.patch
diff options
context:
space:
mode:
authorAyan Das <bvits@riseup.net>2025-08-08 23:27:46 +0530
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-20 13:05:51 +0100
commit801d1108b5e2ca224a5a1de3c295fa7f8874ccb2 (patch)
tree6d944792d02baf31bd50e81ee54cdfa5566d62f2 /gnu/packages/patches/python-pytorch-without-kineto.patch
parent9b2f9a4a1ebe746b25e77c784c0839513dfbfd4e (diff)
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 <david.elsing@posteo.net> @dtelsing Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/patches/python-pytorch-without-kineto.patch')
-rw-r--r--gnu/packages/patches/python-pytorch-without-kineto.patch11
1 files changed, 6 insertions, 5 deletions
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 <ActivityType.h> 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,