You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding "restrict (amp,cpu)" to the end of most all functions should be enough. Put it in a macro that's defined to nothing on non-AMP platforms. Use VS2012 (express edition is free) to test.
This way you could seamlessly use it for GPGPU using AMP.
The text was updated successfully, but these errors were encountered:
It's actually a lot more complex than what you were expecting. C++ AMP doesn't support 16 bits integers (Used for half) or built-in std functions like "floor".
It sounds very unlikely that such port happen unless C++ AMP became used enough that the work required to support it happen.
Well, you could just leave the restrict(amp) thing off of any functions that wouldn't compile with it. Note: I'm not suggesting you actually implement any algorithms using AMP, just that you make it possible for others to use GLM in their AMP algorithms. If they can't use half or floor until AMP supports it, then so be it.
Adding "restrict (amp,cpu)" to the end of most all functions should be enough. Put it in a macro that's defined to nothing on non-AMP platforms. Use VS2012 (express edition is free) to test.
This way you could seamlessly use it for GPGPU using AMP.
The text was updated successfully, but these errors were encountered: