DP3
Common.h
Go to the documentation of this file.
1 // Copyright (C) 2023 ASTRON (Netherlands Institute for Radio Astronomy)
2 // SPDX-License-Identifier: GPL-3.0-or-later
3 
4 #ifndef DP3_DDECAL_GAIN_SOLVERS_KERNELS_COMMON_H_
5 #define DP3_DDECAL_GAIN_SOLVERS_KERNELS_COMMON_H_
6 
7 #include <cudawrappers/cu.hpp>
8 
12 template <typename T>
13 T* Cast(cu::DeviceMemory& m) {
14  return reinterpret_cast<T*>(static_cast<CUdeviceptr>(m));
15 }
16 
17 #endif // DP3_DDECAL_GAIN_SOLVERS_KERNELS_COMMON_H_
T * Cast(cu::DeviceMemory &m)
Definition: Common.h:13