Half precision using GPU
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 11 Apr. 2023
Perhaps
A=gpuArray(half(magic(3)))
??
I do not have a GPU available to test with
Fernando
am 11 Apr. 2023
Akzeptierte Antwort
Weitere Antworten (1)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!