CMS 3D CMS Logo

Thing.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_CUDATest_Thing_H
2 #define HeterogeneousCore_CUDATest_Thing_H
3 
5 
6 namespace cms {
7  namespace cudatest {
8  class Thing {
9  public:
10  Thing() = default;
11  explicit Thing(cms::cuda::device::unique_ptr<float[]> ptr) : ptr_(std::move(ptr)) {}
12 
13  const float *get() const { return ptr_.get(); }
14 
15  private:
17  };
18  } // namespace cudatest
19 } // namespace cms
20 
21 #endif
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
Thing(cms::cuda::device::unique_ptr< float[]> ptr)
Definition: Thing.h:11
Namespace of DDCMS conversion namespace.
cms::cuda::device::unique_ptr< float[]> ptr_
Definition: Thing.h:16
def move(src, dest)
Definition: eostools.py:511