To improve the time efficiency of my code, I'd like to test a lower precision for real number, using e.g. half precision (2 bytes).
However, I'm not sure if I can do that in Fortran.
After playing with the intrinsic SELECTED_REAL_KIND
procedure, it seems that gfortran can only deal with 4, 8, 10 or 16 bytes precisions.
Edit: Actually, I could have directly read the manual...
Is it then possible to use half precision floats in Fortran (maybe with another compiler)?
If not, would there be an easy alternative to prototype half precision code?
SELECTED_REAL_KIND
with several arguments and got the integers 4, 8, 10 and 16 (and some error codes) as results. I assume those are the available precisions in bytes. (80 bits precision is a thing according to Wikipedia). $\endgroup$