aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/ComputeCppIRMap.cmake
diff options
context:
space:
mode:
authorGravatar Thales Sabino <thales@codeplay.com>2020-06-05 14:04:22 +0100
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-06-05 20:51:20 +0000
commit1fcaaf460fc4d3a78a42619005a1fb5c4a3dd6ca (patch)
treeae2673285529190eb61bcd9c1dc7409d1ea5808a /cmake/ComputeCppIRMap.cmake
parent3ce18d3c8f22cdb4a36cb1563f14a2a0f285f28c (diff)
Update FindComputeCpp.cmake to fix build problems on Windows
- Use standard types in SYCL/PacketMath.h to avoid compilation problems on Windows - Add EIGEN_HAS_CONSTEXPR to cxx11_tensor_argmax_sycl.cpp to fix build problems on Windows
Diffstat (limited to 'cmake/ComputeCppIRMap.cmake')
-rw-r--r--cmake/ComputeCppIRMap.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/ComputeCppIRMap.cmake b/cmake/ComputeCppIRMap.cmake
new file mode 100644
index 000000000..942d91d64
--- /dev/null
+++ b/cmake/ComputeCppIRMap.cmake
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 3.4.3)
+
+# These should match the types of IR output by compute++
+set(IR_MAP_spir bc)
+set(IR_MAP_spir64 bc)
+set(IR_MAP_spir32 bc)
+set(IR_MAP_spirv spv)
+set(IR_MAP_spirv64 spv)
+set(IR_MAP_spirv32 spv)
+set(IR_MAP_aorta-x86_64 o)
+set(IR_MAP_aorta-aarch64 o)
+set(IR_MAP_aorta-rcar-cve o)
+set(IR_MAP_custom-spir64 bc)
+set(IR_MAP_custom-spir32 bc)
+set(IR_MAP_custom-spirv64 spv)
+set(IR_MAP_custom-spirv32 spv)
+set(IR_MAP_ptx64 s)
+set(IR_MAP_amdgcn s)