Matlab Support for float32/single and float16/half datatypes in GPU Sparse Matrix Multiplication

6 visualizaciones (últimos 30 días)
Is there a timeline for Matlab support for single (float32) and half (float16) datatypes for the non-zero values in GPU sparse matrices and for compatible float32/float16 gpu-accelerated sparse matrix multiplication?
This functionality exists in the underlying sparse CUDA libraries, and I believe it would be possible for users to compile their own MEX files to perform this task. However, considering the computational and memory efficiency that could be achieved by widening the functionality of sparse GPU matrices to float32/float16 non-zero values, I believe there exists a significant enough underlying demand for this functionality in Matlab to justify adding it in a future release. This is especially relevant when using very large GPU sparse matrices, which ultimately overwhelm the VRAM of most commercial GPUs.

Respuesta aceptada

Mike Croucher
Mike Croucher el 13 de Ag. de 2025
Editada: Mike Croucher el 13 de Ag. de 2025
As of R2025a, single precision sparse matrices are now supported on CPU and GPU. More details available on this blog post New in MATLAB: Single precision sparse matrices » The MATLAB Blog - MATLAB & Simulink
  1 comentario
Anthony
Anthony el 14 de Ag. de 2025

That's excellent! Our lab has been looking forward to this update, and I was excited to see it implemented in the most recent release. Keep us posted on when/if there is a timeline for half precision. We've also recently been exploring using the mexfunction/mexcuda interface for float16 CSR SpMM using CUDA/cuSparse (float32 computeType). Thanks!

Iniciar sesión para comentar.

Más respuestas (2)

Joss Knight
Joss Knight el 31 de Ag. de 2024
Half support is not currently planned for sparse.

Walter Roberson
Walter Roberson el 30 de Ag. de 2024
This is not scheduled for R2024b.
If there is a timeline, then it is not publically available.

Categorías

Más información sobre GPU Computing en Help Center y File Exchange.

Productos


Versión

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by