Fix LLVM compilation for OpenCL kernels
[hashcat.git] / include / kernel_vendor.h
1 /**
2 * Author......: Jens Steube <jens.steube@gmail.com>
3 * License.....: MIT
4 */
5
6 #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
7 #pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
8
9 /**
10 * vendor specific
11 */
12
13 #if VENDOR_ID == 4098
14 #define IS_AMD
15 #elif VENDOR_ID == 4318
16 #define IS_NV
17 #else
18 #define IS_GENERIC
19 #endif
20
21 /**
22 * AMD specific
23 */
24
25 #ifdef IS_AMD
26 #pragma OPENCL EXTENSION cl_amd_media_ops : enable
27 #pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
28 #endif
29
30 /**
31 * NV specific
32 */
33
34 #ifdef IS_NV
35 #endif
36
37 /**
38 * Generic
39 */
40
41 #ifdef IS_GENERIC
42 #endif