Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我有一个像a = b * c + d * e + f * g + h * i + j. 我应该写a = fma(a, c, fma(d, e, fma(f, g, fma(h, i, j))))吗?
a = b * c + d * e + f * g + h * i + j
a = fma(a, c, fma(d, e, fma(f, g, fma(h, i, j))))
编译器会自动优化表达式吗?还是 fma 形式实际上比普通形式更好?
我发现很难知道内核在 C++AMP 中编译成什么......我应该切换到 OpenCL 吗?