Akarshan Biswas
2ba5e0cb47
CUDA: fix build error from ambiguous __half conversions in conv2d (llama/15690)
...
* CUDA: fix build error from ambiguous __half conversions in conv2d
Building conv2d with half precision failed because `__half` defines
multiple implicit conversion operators (to float, int, short, etc.),
causing ambiguous overload resolution when multiplying with float.
Introduce a templated `to_float` helper that explicitly converts
`__half` via `__half2float`, while passing through float unchanged.
Use this helper in conv2d accumulation to ensure unambiguous and
correct promotion to float.
Fixes some build errors with half-precision kernels on CUDA.
ggml-ci
* CUDA: Replace custom to_float helper with unified ggml_cuda_cast and add half‑>float conversion
* CUDA: Add missing convert.cuh header
* CUDA: remove unnecessary extension in ggml_cuda_cast
* CUDA: Address review comment, remove second type template argument
2025-09-20 13:42:46 +03:00
..
2025-08-18 20:30:45 +03:00
2025-09-20 13:42:41 +03:00
2025-05-13 13:59:21 +03:00
2024-06-26 19:34:09 +03:00
2025-09-20 13:42:38 +03:00
2025-08-18 20:30:45 +03:00
2024-06-26 19:34:09 +03:00
2024-06-26 19:34:09 +03:00
2024-12-08 20:14:35 +02:00
2024-10-05 15:23:51 +03:00
2024-08-08 22:48:46 +03:00
2024-06-26 19:34:09 +03:00
2025-09-20 13:42:44 +03:00
2025-09-20 13:42:44 +03:00
2025-03-08 15:13:01 +02:00
2024-06-26 19:34:09 +03:00
2025-09-20 13:42:43 +03:00
2025-09-20 13:42:42 +03:00
2025-03-31 14:56:53 +03:00
2024-06-26 19:34:09 +03:00
2025-06-21 07:34:17 +03:00
2025-06-21 07:34:17 +03:00
2025-06-21 07:34:17 +03:00
2025-06-21 07:34:17 +03:00
2025-09-20 13:42:46 +03:00
2025-09-20 13:42:44 +03:00
2025-09-20 13:42:38 +03:00
2024-07-08 14:53:55 +03:00
2025-09-20 13:42:38 +03:00
2025-08-18 20:30:45 +03:00
2024-11-15 15:21:04 +02:00
2024-10-05 15:23:51 +03:00
2025-05-13 13:59:21 +03:00
2025-08-18 20:30:45 +03:00
2025-09-20 13:42:38 +03:00
2025-04-24 20:39:16 +03:00
2025-07-12 19:23:56 +03:00
2024-09-24 19:45:08 +03:00
2025-09-20 13:42:38 +03:00
2024-06-26 19:34:09 +03:00
2024-06-26 19:34:09 +03:00
2025-09-20 13:42:38 +03:00
2025-09-20 13:42:38 +03:00
2025-09-20 13:42:40 +03:00
2024-06-26 19:34:09 +03:00
2025-09-20 13:42:38 +03:00
2024-06-26 19:34:09 +03:00
2025-09-20 13:42:38 +03:00
2025-09-20 13:42:38 +03:00
2025-09-20 13:42:38 +03:00
2025-02-03 22:00:57 +02:00
2025-09-20 13:42:38 +03:00
2025-09-20 13:42:38 +03:00
2025-09-20 13:42:38 +03:00
2025-05-01 13:29:02 +03:00
2025-09-20 13:42:44 +03:00
2025-01-14 10:38:01 +02:00
2025-01-14 10:38:01 +02:00
2025-08-18 20:30:45 +03:00
2024-06-26 19:34:09 +03:00
2025-08-18 20:30:45 +03:00
2025-07-01 17:54:53 +03:00
2025-09-20 13:42:38 +03:00
2025-09-20 13:42:38 +03:00
2025-08-18 20:30:45 +03:00
2025-09-20 13:42:41 +03:00
2025-09-20 13:42:41 +03:00
2025-09-20 13:42:38 +03:00
2025-08-18 20:30:45 +03:00
2025-09-20 13:42:38 +03:00
2025-04-24 20:39:16 +03:00
2025-09-20 13:42:44 +03:00
2025-09-20 13:42:44 +03:00
2024-11-20 21:00:08 +02:00
2024-09-24 19:45:08 +03:00
2025-08-18 20:30:45 +03:00
2025-08-18 20:30:45 +03:00
2025-02-03 22:00:57 +02:00
2024-09-24 19:45:08 +03:00
2025-09-20 13:42:39 +03:00
2025-09-20 13:42:39 +03:00
2025-03-31 14:56:53 +03:00
2024-06-26 19:34:09 +03:00
2024-06-26 19:34:09 +03:00
2024-06-26 19:34:09 +03:00
2025-05-19 14:58:39 +03:00
2025-05-01 13:29:02 +03:00
2025-09-20 13:42:38 +03:00
2025-08-18 20:30:45 +03:00
2025-08-18 20:30:45 +03:00
2025-07-12 19:23:56 +03:00
2025-02-03 22:00:57 +02:00
2025-07-12 19:23:56 +03:00
2024-06-26 19:34:09 +03:00
2025-08-18 20:30:45 +03:00
2025-07-20 00:23:50 +03:00
2025-08-18 20:30:45 +03:00
2025-08-18 20:30:45 +03:00
2025-08-18 20:30:45 +03:00
2025-02-03 22:00:57 +02:00
2025-07-12 19:23:56 +03:00
2025-04-02 15:51:57 +03:00
2025-09-20 13:42:43 +03:00
2025-04-02 15:51:57 +03:00
2025-08-18 20:30:45 +03:00
2024-09-24 19:45:08 +03:00
2025-08-18 20:30:45 +03:00
2025-07-01 17:54:53 +03:00
2024-06-26 19:34:09 +03:00
2024-06-26 19:34:09 +03:00
2025-08-18 20:30:45 +03:00
2025-08-18 20:30:45 +03:00
2025-07-12 19:23:56 +03:00
2024-06-26 19:34:09 +03:00
2025-09-20 13:42:41 +03:00
2025-03-27 11:06:03 +02:00
2025-03-27 11:06:03 +02:00