aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2015-10-24 18:49:00 -0700
committerWade Walker <[email protected]>2015-11-08 14:05:34 -0600
commit2739f7be10bd7fbd11d4a85d2e7636793f9c815e (patch)
tree83a55bf91c9187061dcad49bdbe0a2d0ddb3b16e /src
parentba691aeb833671c57f59d1bcfa1ffc842f09d6df (diff)
Fix CLProgramTest for Intel OpenCL
Added a couple of differences in test results for programs recreated from binaries (the programs are executable and have binary length > 0), and avoided the CL kernel creation test on a binary because it segfaults like it does on AMD drivers.
Diffstat (limited to 'src')
-rw-r--r--src/com/jogamp/opencl/CLPlatform.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java
index 77da10b4..34265465 100644
--- a/src/com/jogamp/opencl/CLPlatform.java
+++ b/src/com/jogamp/opencl/CLPlatform.java
@@ -468,6 +468,14 @@ public class CLPlatform {
public boolean isVendorAMD() {
return getVendor().contains("Advanced Micro Devices");
}
+
+ /**
+ * @return true if the vendor is Intel.
+ */
+ public boolean isVendorIntel() {
+ return getVendor().contains("Intel");
+ }
+
/**
* Returns the ICD suffix.
*/