ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ek_kernels.cuh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 The ESPResSo project
3 *
4 * This file is part of ESPResSo.
5 *
6 * ESPResSo is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ESPResSo is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
38
43
44namespace walberla {
45namespace detail {
46
47using lbmpy::Arch;
48
49template <> struct KernelTrait<double, Arch::GPU> {
50 using ContinuityKernel = pystencils::ContinuityKernel_double_precision_CUDA;
51 using DiffusiveFluxKernel =
52 pystencils::DiffusiveFluxKernel_double_precision_CUDA;
53 using DiffusiveFluxKernelThermalized =
54 pystencils::DiffusiveFluxKernelThermalized_double_precision_CUDA;
55 using AdvectiveFluxKernel =
56 pystencils::AdvectiveFluxKernel_double_precision_CUDA;
57 using FrictionCouplingKernel =
58 pystencils::FrictionCouplingKernel_double_precision_CUDA;
59 using DiffusiveFluxKernelElectrostatic =
60 pystencils::DiffusiveFluxKernelWithElectrostatic_double_precision_CUDA;
61 using DiffusiveFluxKernelElectrostaticThermalized = pystencils::
62 DiffusiveFluxKernelWithElectrostaticThermalized_double_precision_CUDA;
63
64 using Dirichlet = pystencils::Dirichlet_double_precision_CUDA;
65 using FixedFlux = pystencils::FixedFlux_double_precision_CUDA;
66};
67template <> struct KernelTrait<float, Arch::GPU> {
68 using ContinuityKernel = pystencils::ContinuityKernel_single_precision_CUDA;
69 using DiffusiveFluxKernel =
70 pystencils::DiffusiveFluxKernel_single_precision_CUDA;
71 using DiffusiveFluxKernelThermalized =
72 pystencils::DiffusiveFluxKernelThermalized_single_precision_CUDA;
73 using AdvectiveFluxKernel =
74 pystencils::AdvectiveFluxKernel_single_precision_CUDA;
75 using FrictionCouplingKernel =
76 pystencils::FrictionCouplingKernel_single_precision_CUDA;
77 using DiffusiveFluxKernelElectrostatic =
78 pystencils::DiffusiveFluxKernelWithElectrostatic_single_precision_CUDA;
79 using DiffusiveFluxKernelElectrostaticThermalized = pystencils::
80 DiffusiveFluxKernelWithElectrostaticThermalized_single_precision_CUDA;
81
82 using Dirichlet = pystencils::Dirichlet_single_precision_CUDA;
83 using FixedFlux = pystencils::FixedFlux_single_precision_CUDA;
84};
85} // namespace detail
86} // namespace walberla
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
\file PackInfoPdfDoublePrecision.cpp \author pystencils
Arch
P3M kernel architecture.