2 * Author......: Jens Steube <jens.steube@gmail.com>
6 #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
7 #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
13 #define DEVICE_TYPE_CPU 2
14 #define DEVICE_TYPE_GPU 4
15 #define DEVICE_TYPE_ACCEL 8
17 #if DEVICE_TYPE == DEVICE_TYPE_CPU
19 #elif DEVICE_TYPE == DEVICE_TYPE_GPU
21 #elif DEVICE_TYPE == DEVICE_TYPE_ACCEL
29 #if VENDOR_ID == (1 << 0)
31 #elif VENDOR_ID == (1 << 6)
42 #pragma OPENCL EXTENSION cl_amd_media_ops : enable
43 #pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
47 * Unrolling is generally enabled, for all device types and hash modes
48 * There's a few exception when it's better not to unroll
51 // Some algorithms run into too much register pressure due to loop unrolling
89 #if KERN_TYPE == 10400
92 #if KERN_TYPE == 10500
95 #if KERN_TYPE == 10700
98 #if KERN_TYPE == 12300
101 #if KERN_TYPE == 12400
111 #if KERN_TYPE == 3200
114 #if KERN_TYPE == 5200
117 #if KERN_TYPE == 6100
120 #if KERN_TYPE == 6221
123 #if KERN_TYPE == 6222
126 #if KERN_TYPE == 6223
129 #if KERN_TYPE == 6400
132 #if KERN_TYPE == 6500
135 #if KERN_TYPE == 6800
138 #if KERN_TYPE == 7100
141 #if KERN_TYPE == 7400
144 #if KERN_TYPE == 8000
147 #if KERN_TYPE == 8200
150 #if KERN_TYPE == 10900
153 #if KERN_TYPE == 11600
156 #if KERN_TYPE == 12300
159 #if KERN_TYPE == 12800
162 #if KERN_TYPE == 12900
165 #if KERN_TYPE == 13000
172 // Some algorithms break due to loop unrolling, it's unknown why, probably compiler bugs
173 // Can overlap with above cases
178 #if KERN_TYPE == 1750
181 #if KERN_TYPE == 1760
184 #if KERN_TYPE == 6500
187 #if KERN_TYPE == 7100
190 #if KERN_TYPE == 9600
193 #if KERN_TYPE == 12200
196 #if KERN_TYPE == 12300