Merge pull request #348 from anthraxx/master
[hashcat.git] / include / kernel_vendor.h
index d364256..7f9c789 100644 (file)
@@ -3,8 +3,9 @@
  * License.....: MIT
  */
 
-#pragma OPENCL EXTENSION cl_khr_int64_base_atomics     : enable
-#pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
+//fails on intel opencl sdk
+//#pragma OPENCL EXTENSION cl_khr_int64_base_atomics     : enable
+//#pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
 
 /**
  * device type
 
 #if   VENDOR_ID == (1 << 0)
 #define IS_AMD
-#elif VENDOR_ID == (1 << 6)
+//#define IS_GENERIC
+#elif VENDOR_ID == (1 << 1)
+#define IS_APPLE
+#define IS_GENERIC
+#elif VENDOR_ID == (1 << 2)
+#define IS_INTEL_BEIGNET
+#define IS_GENERIC
+#elif VENDOR_ID == (1 << 3)
+#define IS_INTEL_SDK
+#define IS_GENERIC
+#elif VENDOR_ID == (1 << 4)
+#define IS_MESA
+#define IS_GENERIC
+#elif VENDOR_ID == (1 << 5)
 #define IS_NV
+//#define IS_GENERIC
+#elif VENDOR_ID == (1 << 6)
+#define IS_POCL
+#define IS_GENERIC
 #else
 #define IS_GENERIC
 #endif
@@ -80,6 +98,9 @@
 #if KERN_TYPE == 7400
 #undef _unroll
 #endif
+#if KERN_TYPE == 7900
+#undef _unroll
+#endif
 #if KERN_TYPE == 8200
 #undef _unroll
 #endif