Initial SYCL support:

The core and some ext functions should work.
This commit is contained in:
rhoarau
2019-06-09 16:05:09 +02:00
parent fce2abd01c
commit 8fb71ffd07
3 changed files with 51 additions and 0 deletions

View File

@@ -81,6 +81,9 @@
#define GLM_COMPILER_CUDA75 0x100000B0
#define GLM_COMPILER_CUDA80 0x100000C0
// SYCL
#define GLM_COMPILER_SYCL 0x00300000
// Clang
#define GLM_COMPILER_CLANG 0x20000000
#define GLM_COMPILER_CLANG34 0x20000050
@@ -129,6 +132,10 @@
# error "GLM requires CUDA 7.0 or higher"
# endif
// SYCL
#elif defined(__SYCL_DEVICE_ONLY__)
# define GLM_COMPILER GLM_COMPILER_SYCL
// Clang
#elif defined(__clang__)
# if defined(__apple_build_version__)