Alan Gray and slaren
3f9da22c2b
Simplify and improve CUDA graphs through use of indirect copy pointers ( #9017 )
...
* CUDA: Simplify and improve CUDA graphs through use of indirect copy pointers
Previously there was complexity in the CUDA graphs implementation due
frequently changing parameters to copy kernels associated with K and V
cache pointers. This patch simplifies by using indirection to avoid
such parameters frequently changing, avoiding the need for frequent
graph updates.
Fixes #12152
* Addressed comments
* fix HIP builds
* properly sync to stream
* removed ggml_cuda_cpy_fn_ptrs
* move stream sync before free
* guard to only use indirection with graphs
* style fixes
* check for errors
---------
Co-authored-by: slaren <slarengh@gmail.com >
2025-04-03 03:31:15 +02:00
..
2025-02-22 12:20:17 +01:00
2025-03-26 23:46:30 +01:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2024-11-21 18:18:50 +01:00
2024-10-03 21:17:26 +03:00
2024-07-27 04:41:55 +02:00
2024-06-26 18:33:02 +03:00
2025-03-03 18:18:11 +02:00
2024-09-20 21:15:05 +03:00
2025-03-03 18:18:11 +02:00
2024-06-26 18:33:02 +03:00
2025-03-01 12:57:22 +01:00
2025-04-03 03:31:15 +02:00
2025-03-30 10:59:38 +02:00
2024-06-26 18:33:02 +03:00
2025-03-30 10:59:38 +02:00
2024-07-08 12:23:00 +03:00
2025-03-30 10:59:38 +02:00
2024-06-26 18:33:02 +03:00
2024-11-09 08:35:46 +01:00
2024-10-03 21:17:26 +03:00
2025-02-22 12:20:17 +01:00
2025-04-03 03:31:15 +02:00
2025-04-03 03:31:15 +02:00
2025-02-21 09:46:23 +02:00
2024-09-20 21:15:05 +03:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2025-03-30 10:59:38 +02:00
2025-03-30 10:59:38 +02:00
2025-03-30 10:59:38 +02:00
2024-06-26 18:33:02 +03:00
2025-03-30 10:59:38 +02:00
2024-06-26 18:33:02 +03:00
2025-03-30 10:59:38 +02:00
2025-03-30 10:59:38 +02:00
2025-03-30 10:59:38 +02:00
2025-02-02 19:31:09 +01:00
2025-03-22 10:11:37 +01:00
2024-06-26 18:33:02 +03:00
2025-01-16 16:43:38 +01:00
2025-01-16 16:43:38 +01:00
2025-04-03 03:31:15 +02:00
2025-01-10 09:58:08 +08:00
2025-01-10 09:58:08 +08:00
2024-10-23 16:50:02 +03:00
2024-06-26 18:33:02 +03:00
2025-03-30 10:59:38 +02:00
2025-03-26 23:46:30 +01:00
2025-03-30 10:59:38 +02:00
2025-03-30 10:59:38 +02:00
2024-11-17 09:09:55 +01:00
2025-03-30 10:59:38 +02:00
2024-06-26 18:33:02 +03:00
2025-03-18 07:27:50 +08:00
2025-03-18 07:27:50 +08:00
2024-11-17 08:30:29 +02:00
2024-09-20 21:15:05 +03:00
2025-01-24 12:38:31 +01:00
2024-09-20 21:15:05 +03:00
2025-03-30 10:59:38 +02:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2024-11-21 18:18:50 +01:00
2024-07-11 16:47:47 +02:00
2025-01-16 16:43:38 +01:00
2025-01-15 12:51:37 +01:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2025-02-02 23:48:29 +01:00
2025-01-16 16:43:38 +01:00
2025-03-31 18:05:13 +02:00
2025-03-31 18:05:13 +02:00
2025-03-31 18:05:13 +02:00
2025-03-31 18:05:13 +02:00
2025-02-12 13:16:39 +01:00
2024-09-08 11:05:55 +03:00
2024-08-27 22:41:27 +03:00
2024-08-27 22:41:27 +03:00
2024-06-26 18:33:02 +03:00
2024-06-26 18:33:02 +03:00
2025-03-03 18:18:11 +02:00
2025-03-03 18:18:11 +02:00
2025-03-30 10:59:38 +02:00
2024-06-26 18:33:02 +03:00
2024-07-20 22:25:26 +02:00
2025-03-18 07:27:50 +08:00
2025-03-18 07:27:50 +08:00