Add platform vendor_id detection
[hashcat.git] / include / kernel_vendor.h
1 /**
2 * Author......: Jens Steube <jens.steube@gmail.com>
3 * License.....: MIT
4 */
5
6 #ifdef cl_khr_byte_addressable_store
7 #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
8 #endif
9
10 #ifdef cl_clang_storage_class_specifiers
11 #pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
12 #endif
13
14 /**
15 * vendor specific
16 */
17
18 #if VENDOR_ID == (1 << 0)
19 #define IS_AMD
20 #elif VENDOR_ID == (1 << 6)
21 #define IS_NV
22 #else
23 #define IS_GENERIC
24 #endif
25
26 /**
27 * AMD specific
28 */
29
30 #ifdef IS_AMD
31 #ifndef cl_clang_storage_class_specifiers
32 #pragma OPENCL EXTENSION cl_amd_media_ops : enable
33 #pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
34 #endif
35 #endif
36
37 /**
38 * NV specific
39 */
40
41 #ifdef IS_NV
42 #endif
43
44 /**
45 * Generic
46 */
47
48 #ifdef IS_GENERIC
49 #endif