Lines Matching defs:SVMAllocator
328 cl::SVMAllocator<Foo, cl::SVMTraitCoarse<cl::SVMTraitReadOnly<>>> svmAllocReadOnly;
331 cl::SVMAllocator<int, cl::SVMTraitCoarse<>> svmAlloc;
332 std::vector<int, cl::SVMAllocator<int, cl::SVMTraitCoarse<>>> inputA(numElements, 1, svmAlloc);
3544 class SVMAllocator {
3560 typedef SVMAllocator<U, SVMTrait> other;
3564 friend class SVMAllocator;
3566 SVMAllocator() :
3571 explicit SVMAllocator(cl::Context context) :
3577 SVMAllocator(const SVMAllocator &other) :
3583 SVMAllocator(const SVMAllocator<U, SVMTrait> &other) :
3588 ~SVMAllocator()
3610 typename cl::SVMAllocator<void, SVMTrait>::const_pointer = 0)
3678 inline bool operator==(SVMAllocator const& rhs)
3683 inline bool operator!=(SVMAllocator const& a)
3687 }; // class SVMAllocator return cl::pointer<T>(tmp, detail::Deleter<T, Alloc>{alloc, copies});
3691 class SVMAllocator<void, SVMTrait> {
3700 typedef SVMAllocator<U, SVMTrait> other;
3704 friend class SVMAllocator;
3767 cl::pointer<T, detail::Deleter<SVMAllocator<T, SVMTrait>>> allocate_svm(Args... args)
3769 SVMAllocator<T, SVMTrait> alloc;
3774 cl::pointer<T, detail::Deleter<SVMAllocator<T, SVMTrait>>> allocate_svm(const cl::Context &c, Args... args)
3776 SVMAllocator<T, SVMTrait> alloc(c);
3785 using coarse_svm_vector = vector<T, cl::SVMAllocator<int, cl::SVMTraitCoarse<>>>;
3791 using fine_svm_vector = vector<T, cl::SVMAllocator<int, cl::SVMTraitFine<>>>;
3797 using atomic_svm_vector = vector<T, cl::SVMAllocator<int, cl::SVMTraitAtomic<>>>;