device_vector.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2024, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 #include <rmm/detail/export.hpp>
9 #include <rmm/detail/thrust_namespace.h>
11 
12 #include <thrust/device_vector.h>
13 
14 namespace RMM_NAMESPACE {
24 template <typename T>
25 using device_vector = thrust::device_vector<T, rmm::mr::thrust_allocator<T>>;
26  // end of group
28 } // namespace RMM_NAMESPACE
thrust::device_vector< T, rmm::mr::thrust_allocator< T > > device_vector
Alias for a thrust::device_vector that uses RMM for memory allocation.
Definition: device_vector.hpp:25