Add platform vendor_id detection
[hashcat.git] / include / kernel_vendor.h
index 7ee2176..dcf8db3 100644 (file)
@@ -15,9 +15,9 @@
  * vendor specific
  */
 
-#if VENDOR_ID == 4098
+#if VENDOR_ID == (1 << 0)
 #define IS_AMD
-#elif VENDOR_ID == 4318
+#elif VENDOR_ID == (1 << 6)
 #define IS_NV
 #else
 #define IS_GENERIC
  */
 
 #ifdef IS_AMD
+#ifndef cl_clang_storage_class_specifiers
 #pragma OPENCL EXTENSION cl_amd_media_ops  : enable
 #pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
 #endif
+#endif
 
 /**
  * NV specific