54template <
typename FT =
double, Arch AT = Arch::CPU>
struct KernelTrait {
56 using StreamCollisionModelThermalized =
57 pystencils::StreamCollideSweepThermalizedDoublePrecisionAVX;
58 using StreamCollisionModelLeesEdwards =
59 pystencils::StreamCollideSweepLeesEdwardsDoublePrecisionAVX;
61 using StreamCollisionModelThermalized =
62 pystencils::StreamCollideSweepThermalizedDoublePrecision;
63 using StreamCollisionModelLeesEdwards =
64 pystencils::StreamCollideSweepLeesEdwardsDoublePrecision;
66 using InitialPDFsSetter = pystencils::InitialPDFsSetterDoublePrecision;
67 using UpdateVelFromPDF = pystencils::UpdateVelFromPDFDoublePrecision;
68 using PackInfoPdf = pystencils::PackInfoPdfDoublePrecision;
69 using PackInfoVec = pystencils::PackInfoVecDoublePrecision;
74 using StreamCollisionModelThermalized =
75 pystencils::StreamCollideSweepThermalizedSinglePrecisionAVX;
76 using StreamCollisionModelLeesEdwards =
77 pystencils::StreamCollideSweepLeesEdwardsSinglePrecisionAVX;
79 using StreamCollisionModelThermalized =
80 pystencils::StreamCollideSweepThermalizedSinglePrecision;
81 using StreamCollisionModelLeesEdwards =
82 pystencils::StreamCollideSweepLeesEdwardsSinglePrecision;
84 using InitialPDFsSetter = pystencils::InitialPDFsSetterSinglePrecision;
85 using UpdateVelFromPDF = pystencils::UpdateVelFromPDFSinglePrecision;
86 using PackInfoPdf = pystencils::PackInfoPdfSinglePrecision;
87 using PackInfoVec = pystencils::PackInfoVecSinglePrecision;
90template <
typename FT =
double, Arch AT = Arch::CPU>
91struct BoundaryHandlingTrait {
92 using DynamicUBB = lbm::DynamicUBBDoublePrecision;
95template <>
struct BoundaryHandlingTrait<
float,
Arch::
CPU> {
96 using DynamicUBB = lbm::DynamicUBBSinglePrecision;
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
\file PackInfoPdfDoublePrecision.cpp \author pystencils
Arch
P3M kernel architecture.