ocl: fixes

This commit is contained in:
Alexander Alekhin
2014-03-14 14:01:05 +04:00
parent 755ca4b7cf
commit 9cafd50160
4 changed files with 23 additions and 7 deletions

View File

@@ -169,6 +169,10 @@ public:
VENDOR_NVIDIA=3
};
int vendorID() const;
// FIXIT
// dev.isAMD() doesn't work for OpenCL CPU devices from AMD OpenCL platform.
// This method should use platform name instead of vendor name.
// After fix restore code in arithm.cpp: ocl_compare()
inline bool isAMD() const { return vendorID() == VENDOR_AMD; }
inline bool isIntel() const { return vendorID() == VENDOR_INTEL; }