Pick applicable buffers for aux translation

Change-Id: I60a28cd9e0dec61120b1ae5c42dfe0cb852eb387
This commit is contained in:
Dunajski, Bartosz
2018-08-07 15:09:16 +02:00
committed by sys_ocldev
parent 428fdb4ed4
commit b4f53fdfa7
8 changed files with 87 additions and 5 deletions

View File

@@ -77,6 +77,12 @@ inline const DerivedType *castToObject(const typename DerivedType::BaseType *obj
return const_cast<const DerivedType *>(castToObject<DerivedType>(const_cast<typename DerivedType::BaseType *>(object)));
}
template <typename DerivedType>
inline DerivedType *castToObject(const void *object) {
cl_mem clMem = const_cast<cl_mem>(static_cast<const _cl_mem *>(object));
return castToObject<DerivedType>(clMem);
}
extern std::thread::id invalidThreadID;
class ConditionVariableWithCounter {