0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::simt: Alias asm to OpenCL __asm__.

This commit is contained in:
Jason Volk 2022-10-19 01:32:44 +00:00
parent 071e108eac
commit 7c8163fcab

View file

@ -43,6 +43,16 @@
#define __constant static
#endif
//
// OpenCL wants __asm__ but also allow asm
//
#if defined(__OPENCL_VERSION__)
#if !defined(asm)
#define asm __asm__
#endif
#endif
//
// Silently drop calls to printf() on unsupporting platforms; this way we can
// leave the same code unmodified and quietly discard the output.