mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::simt: Alias asm to OpenCL __asm__.
This commit is contained in:
parent
071e108eac
commit
7c8163fcab
1 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,16 @@
|
||||||
#define __constant static
|
#define __constant static
|
||||||
#endif
|
#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
|
// Silently drop calls to printf() on unsupporting platforms; this way we can
|
||||||
// leave the same code unmodified and quietly discard the output.
|
// leave the same code unmodified and quietly discard the output.
|
||||||
|
|
Loading…
Reference in a new issue