DP3
ddecal
gain_solvers
kernels
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_
Cast
T * Cast(cu::DeviceMemory &m)
Definition:
Common.h:13
Generated on Thu May 7 2026 07:44:42 for DP3 by
1.9.1