mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +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
|
||||
#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.
|
||||
|
|
Loading…
Reference in a new issue