Half precision using GPU
Mostrar comentarios más antiguos
Hello, I was trying to see if I can run some code using half precision rather than single.
before converting my code, I was trying a very simple example.
A=gpuArray(magic(3));
A=half(A);
This gives me the error: No constructor 'half' with matching signature found.
Using the the half with the CPU works fawlessly.
Any idea if this is supported by all? Looking here, https://www.mathworks.com/help/gpucoder/ug/what-is-half-precision.html, it seems some GPU should support it?
I am using a 16 GB RTX3080 Mobile. R2022b.
2 comentarios
Walter Roberson
el 11 de Abr. de 2023
Perhaps
A=gpuArray(half(magic(3)))
??
I do not have a GPU available to test with
Fernando
el 11 de Abr. de 2023
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!