diff options
Diffstat (limited to 'src/com/jogamp/opencl/CLPlatform.java')
-rw-r--r-- | src/com/jogamp/opencl/CLPlatform.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java index b7b7389c..95e02333 100644 --- a/src/com/jogamp/opencl/CLPlatform.java +++ b/src/com/jogamp/opencl/CLPlatform.java @@ -451,6 +451,12 @@ public class CLPlatform { } /** + * @return true if the vendor is AMD. + */ + public boolean isVendorAMD() { + return getVendor().contains("Advanced Micro Devices"); + } + /** * Returns the ICD suffix. */ @CLProperty("CL_PLATFORM_ICD_SUFFIX_KHR") |