Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:25

0001 #ifndef HeterogeneousCore_CUDATest_Thing_H
0002 #define HeterogeneousCore_CUDATest_Thing_H
0003 
0004 #include "HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h"
0005 
0006 namespace cms {
0007   namespace cudatest {
0008     class Thing {
0009     public:
0010       Thing() = default;
0011       explicit Thing(cms::cuda::device::unique_ptr<float[]> ptr) : ptr_(std::move(ptr)) {}
0012 
0013       const float *get() const { return ptr_.get(); }
0014 
0015     private:
0016       cms::cuda::device::unique_ptr<float[]> ptr_;
0017     };
0018   }  // namespace cudatest
0019 }  // namespace cms
0020 
0021 #endif