Lines Matching defs:std
111 * We use std::array, std::vector, std::shared_ptr and std::string
117 * In addition cl::allocate_pointer forwards to std::allocate_shared
127 * In the 2.0 version we have replaced this with a std::array-based interface.
193 * class. Replaces the updated std::array derived version and
241 std::vector<cl::Platform> platforms;
245 std::string platver = p.getInfo<CL_PLATFORM_VERSION>();
246 if (platver.find("OpenCL 2.") != std::string::npos) {
251 std::cout << "No OpenCL 2.0 platform found.";
257 std::cout << "Error setting default platform.";
262 std::string kernel1{R"CLC(
269 std::string kernel2{R"CLC(
296 std::vector<std::string> programStrings {kernel1, kernel2};
300 vectorAddProgram.build("-cl-std=CL2.0");
307 std::cerr << pair.second << std::endl << std::endl;
332 std::vector<int, cl::SVMAllocator<int, cl::SVMTraitCoarse<>>> inputA(numElements, 1, svmAlloc);
339 std::vector<int> output(numElements, 0xdeadbeef);
389 std::cout << "Output:\n";
391 std::cout << "\t" << output[i] << "\n";
393 std::cout << "\n\n";
605 template < class T, class Alloc = std::allocator<T> >
606 using vector = std::vector<T, Alloc>;
613 using string = std::string;
625 using pointer = std::unique_ptr<T, D>;
633 using array = std::array<T, N>;
747 class Error : public std::exception
1044 *param = std::move(localData);
1097 // std::string has a constant data member
1985 using BuildLogType = vector<std::pair<cl::Device, typename detail::param_traits<detail::cl_program_build_info, CL_PROGRAM_BUILD_LOG>::param_type>>;
2070 static std::once_flag default_initialized_;
2120 std::call_once(default_initialized_, makeDefault);
2137 std::call_once(default_initialized_, makeDefaultProvided, std::cref(default_device));
2169 Device(Device&& dev) CL_HPP_NOEXCEPT_ : detail::Wrapper<cl_type>(std::move(dev)) {}
2176 detail::Wrapper<cl_type>::operator=(std::move(dev));
2235 std::pair<cl_ulong, cl_ulong> getDeviceAndHostTimer(cl_int *error = nullptr)
2237 std::pair<cl_ulong, cl_ulong> retVal;
2336 CL_HPP_DEFINE_STATIC_MEMBER_ std::once_flag Device::default_initialized_;
2350 static std::once_flag default_initialized_;
2445 std::call_once(default_initialized_, makeDefault);
2462 std::call_once(default_initialized_, makeDefaultProvided, std::cref(default_platform));
2696 CL_HPP_DEFINE_STATIC_MEMBER_ std::once_flag Platform::default_initialized_;
2730 static std::once_flag default_initialized_;
2959 Context(Context&& ctx) CL_HPP_NOEXCEPT_ : detail::Wrapper<cl_type>(std::move(ctx)) {}
2966 detail::Wrapper<cl_type>::operator=(std::move(ctx));
2977 std::call_once(default_initialized_, makeDefault);
2994 std::call_once(default_initialized_, makeDefaultProvided, std::cref(default_context));
3123 CL_HPP_DEFINE_STATIC_MEMBER_ std::once_flag Context::default_initialized_;
3366 Memory(Memory&& mem) CL_HPP_NOEXCEPT_ : detail::Wrapper<cl_type>(std::move(mem)) {}
3373 detail::Wrapper<cl_type>::operator=(std::move(mem));
3554 typedef std::size_t size_type;
3555 typedef std::ptrdiff_t difference_type;
3594 return std::addressof(r);
3599 return std::addressof(r);
3623 std::bad_alloc excep;
3632 std::bad_alloc excep;
3652 size_type maxSize = std::numeric_limits<size_type>::max() / sizeof(T);
3655 maxSize = std::min(
3717 typedef typename std::allocator_traits<Alloc>::pointer pointer;
3725 std::allocator_traits<Alloc>::destroy(tmpAlloc, std::addressof(*ptr));
3726 std::allocator_traits<Alloc>::deallocate(tmpAlloc, ptr, copies_);
3732 * Allocation operation compatible with std::allocate_ptr.
3746 T* tmp = std::allocator_traits<Alloc>::allocate(alloc, copies);
3748 std::bad_alloc excep;
3752 std::allocator_traits<Alloc>::construct(
3754 std::addressof(*tmp),
3755 std::forward<Args>(args)...);
3759 catch (std::bad_alloc& b)
3761 std::allocator_traits<Alloc>::deallocate(alloc, tmp, copies);
3875 typedef typename std::iterator_traits<IteratorType>::value_type DataType;
3970 Buffer(Buffer&& buf) CL_HPP_NOEXCEPT_ : Memory(std::move(buf)) {}
3977 Memory::operator=(std::move(buf));
4107 BufferD3D10(BufferD3D10&& buf) CL_HPP_NOEXCEPT_ : Buffer(std::move(buf)) {}
4114 Buffer::operator=(std::move(buf));
4195 BufferGL(BufferGL&& buf) CL_HPP_NOEXCEPT_ : Buffer(std::move(buf)) {}
4202 Buffer::operator=(std::move(buf));
4292 BufferRenderGL(BufferRenderGL&& buf) CL_HPP_NOEXCEPT_ : Buffer(std::move(buf)) {}
4299 Buffer::operator=(std::move(buf));
4363 Image(Image&& img) CL_HPP_NOEXCEPT_ : Memory(std::move(img)) {}
4370 Memory::operator=(std::move(img));
4483 Image1D(Image1D&& img) CL_HPP_NOEXCEPT_ : Image(std::move(img)) {}
4490 Image::operator=(std::move(img));
4567 Image1DBuffer(Image1DBuffer&& img) CL_HPP_NOEXCEPT_ : Image(std::move(img)) {}
4574 Image::operator=(std::move(img));
4656 Image1DArray(Image1DArray&& img) CL_HPP_NOEXCEPT_ : Image(std::move(img)) {}
4663 Image::operator=(std::move(img));
4898 Image2D(Image2D&& img) CL_HPP_NOEXCEPT_ : Image(std::move(img)) {}
4905 Image::operator=(std::move(img));
4994 Image2DGL(Image2DGL&& img) CL_HPP_NOEXCEPT_ : Image2D(std::move(img)) {}
5001 Image2D::operator=(std::move(img));
5087 Image2DArray(Image2DArray&& img) CL_HPP_NOEXCEPT_ : Image(std::move(img)) {}
5094 Image::operator=(std::move(img));
5223 Image3D(Image3D&& img) CL_HPP_NOEXCEPT_ : Image(std::move(img)) {}
5230 Image::operator=(std::move(img));
5315 Image3DGL(Image3DGL&& img) CL_HPP_NOEXCEPT_ : Image3D(std::move(img)) {}
5322 Image3D::operator=(std::move(img));
5396 ImageGL(ImageGL&& img) CL_HPP_NOEXCEPT_ : Image(std::move(img)) {}
5403 Image::operator=(std::move(img));
5514 Pipe(Pipe&& pipe) CL_HPP_NOEXCEPT_ : Memory(std::move(pipe)) {}
5521 Memory::operator=(std::move(pipe));
5647 Sampler(Sampler&& sam) CL_HPP_NOEXCEPT_ : detail::Wrapper<cl_type>(std::move(sam)) {}
5654 detail::Wrapper<cl_type>::operator=(std::move(sam));
5780 struct KernelArgumentHandler<T, typename std::enable_if<!std::is_base_of<cl::Memory, T>::value>::type>
5789 struct KernelArgumentHandler<T, typename std::enable_if<std::is_base_of<cl::Memory, T>::value>::type>
5872 Kernel(Kernel&& kernel) CL_HPP_NOEXCEPT_ : detail::Wrapper<cl_type>(std::move(kernel)) {}
5879 detail::Wrapper<cl_type>::operator=(std::move(kernel));
6008 typename std::enable_if<std::is_pointer<T>::value, cl_int>::type
6020 typename std::enable_if<!std::is_pointer<T>::value, cl_int>::type
6055 * Specify a std::array of SVM pointers that the kernel may access in
6059 cl_int setSVMPointers(const std::array<void*, ArrayLength> &pointerList)
6094 void setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList, const pointer<T0, D> &t0, const pointer<T1, D> &t1, Ts & ... ts)
6101 typename std::enable_if<std::is_pointer<T0>::value, void>::type
6102 setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList, T0 t0, T1 t1, Ts... ts)
6109 void setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList, const pointer<T0, D> &t0)
6116 typename std::enable_if<std::is_pointer<T0>::value, void>::type
6117 setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList, T0 t0)
6125 std::array<void*, 1 + sizeof...(Ts)> pointerList;
6164 typedef vector<std::pair<const void*, size_type> > Binaries;
6165 typedef vector<std::pair<const char*, size_type> > Sources;
6192 "-cl-std=CL2.0",
6229 "-cl-std=CL2.0",
6355 "-cl-std=CL2.0",
6408 "-cl-std=CL2.0",
6571 Program(Program&& program) CL_HPP_NOEXCEPT_ : detail::Wrapper<cl_type>(std::move(program)) {}
6578 detail::Wrapper<cl_type>::operator=(std::move(program));
6694 vector<std::pair<cl::Device, typename detail::param_traits<detail::cl_program_build_info, name>::param_type>>
6700 vector<std::pair<cl::Device, typename detail::param_traits<detail::cl_program_build_info, name>::param_type>>
6716 std::pair<cl::Device, typename detail::param_traits<detail::cl_program_build_info, name>::param_type>
6790 typename std::enable_if<!std::is_pointer<T>::value, cl_int>::type
6985 static std::once_flag default_initialized_;
7406 std::call_once(default_initialized_, makeDefault);
7427 std::call_once(default_initialized_, makeDefaultProvided, std::cref(default_queue));
7467 CommandQueue(CommandQueue&& queue) CL_HPP_NOEXCEPT_ : detail::Wrapper<cl_type>(std::move(queue)) {}
7474 detail::Wrapper<cl_type>::operator=(std::move(queue));
8502 std::pair<void*, size_type> args,
8712 CL_HPP_DEFINE_STATIC_MEMBER_ std::once_flag CommandQueue::default_initialized_;
8847 DeviceCommandQueue(DeviceCommandQueue&& queue) CL_HPP_NOEXCEPT_ : detail::Wrapper<cl_type>(std::move(queue)) {}
8854 detail::Wrapper<cl_type>::operator=(std::move(queue));
9022 typedef typename std::iterator_traits<IteratorType>::value_type DataType;
9073 typedef typename std::iterator_traits<IteratorType>::value_type DataType;
9410 typedef typename std::iterator_traits<IteratorType>::value_type DataType;
9423 std::copy(
9429 std::copy(startIterator, endIterator, pointer);
9449 typedef typename std::iterator_traits<IteratorType>::value_type DataType;
9461 std::copy(pointer, pointer + length, startIterator);
9966 setArgs<index + 1, T1s...>(std::forward<T1s>(t1s)...);
10005 setArgs<0>(std::forward<Ts>(ts)...);
10030 setArgs<0>(std::forward<Ts>(ts)...);