From ce79633c1303f819cabb1776ffb49ba1072a9825 Mon Sep 17 00:00:00 2001 From: Matthew Dooley Date: Sat, 16 May 2020 01:00:09 -0400 Subject: [PATCH] Updates README.md with notes about Fast Math --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index f21e758..ecf7be0 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,6 @@ The GPU calculations are only accurate in the range (0, 33]. This project could be improved by implementing a arbitrary-precision arithmetic. This would require a new data structure on both the Swift and MSL sides. And it would need a way to accurately pass the data between the CPU and GPU. + +## Notes +If Metal compiler uses the Fast Math (the `-ffast-math` flag—which it does by default) GPU calculations will not work.