Lines Matching defs:SVMAllocator
320 cl::SVMAllocator<Foo, cl::SVMTraitCoarse<cl::SVMTraitReadOnly<>>> svmAllocReadOnly;
323 cl::SVMAllocator<int, cl::SVMTraitCoarse<>> svmAlloc;
324 std::vector<int, cl::SVMAllocator<int, cl::SVMTraitCoarse<>>> inputA(numElements, 1, svmAlloc);
3400 class SVMAllocator {
3416 typedef SVMAllocator<U, SVMTrait> other;
3420 friend class SVMAllocator;
3422 SVMAllocator() :
3427 explicit SVMAllocator(cl::Context context) :
3433 SVMAllocator(const SVMAllocator &other) :
3439 SVMAllocator(const SVMAllocator<U, SVMTrait> &other) :
3444 ~SVMAllocator()
3466 typename cl::SVMAllocator<void, SVMTrait>::const_pointer = 0)
3534 inline bool operator==(SVMAllocator const& rhs)
3539 inline bool operator!=(SVMAllocator const& a)
3543 }; // class SVMAllocator return cl::pointer<T>(tmp, detail::Deleter<T, Alloc>{alloc, copies});
3547 class SVMAllocator<void, SVMTrait> {
3556 typedef SVMAllocator<U, SVMTrait> other;
3560 friend class SVMAllocator;
3623 cl::pointer<T, detail::Deleter<SVMAllocator<T, SVMTrait>>> allocate_svm(Args... args)
3625 SVMAllocator<T, SVMTrait> alloc;
3630 cl::pointer<T, detail::Deleter<SVMAllocator<T, SVMTrait>>> allocate_svm(const cl::Context &c, Args... args)
3632 SVMAllocator<T, SVMTrait> alloc(c);
3641 using coarse_svm_vector = vector<T, cl::SVMAllocator<int, cl::SVMTraitCoarse<>>>;
3647 using fine_svm_vector = vector<T, cl::SVMAllocator<int, cl::SVMTraitFine<>>>;
3653 using atomic_svm_vector = vector<T, cl::SVMAllocator<int, cl::SVMTraitAtomic<>>>;