23#include "core/DataTypes.h"
24#include "core/Macros.h"
25#include "gpu/ErrorChecking.h"
27#define FUNC_PREFIX __global__
35#define RESTRICT __restrict__
36#if defined(__NVCC_DIAG_PRAGMA_SUPPORT__)
37#pragma nv_diagnostic push
38#pragma nv_diag_suppress 177
41#pragma diag_suppress 177
43#elif defined(__clang__)
45#if defined(__CUDA_ARCH__)
47#define RESTRICT __restrict__
48#pragma clang diagnostic push
49#pragma clang diagnostic ignored "-Wunused-variable"
52#define RESTRICT __restrict__
53#pragma clang diagnostic push
54#pragma clang diagnostic ignored "-Wunused-variable"
57#elif defined(__GNUC__) or defined(__GNUG__)
58#define RESTRICT __restrict__
59#pragma GCC diagnostic push
60#pragma GCC diagnostic ignored "-Wunused-variable"
61#elif defined(_MSC_VER)
62#define RESTRICT __restrict
68namespace internal_reactionkernelindexed_1_single_precision_cuda_boundary_ReactionKernelIndexed_1_single_precision_CUDA {
89#if defined(__NVCC_DIAG_PRAGMA_SUPPORT__)
90#pragma nv_diagnostic pop
94#elif defined(__clang__)
96#if defined(__CUDA_ARCH__)
98#pragma clang diagnostic pop
101#pragma clang diagnostic pop
104#elif defined(__GNUC__) or defined(__GNUG__)
105#pragma GCC diagnostic pop
108void ReactionKernelIndexed_1_single_precision_CUDA::run_impl(IBlock *
block, IndexVectors::Type type,
gpuStream_t stream) {
111 if (indexVectorSize == 0)
116 uint8_t *_data_indexVector =
reinterpret_cast<uint8_t *
>(pointer);
129 dim3 _grid(
uint32_c(((indexVectorSize) % (((256 < indexVectorSize) ? 256 : indexVectorSize)) == 0 ? (
int64_t)(indexVectorSize) / (
int64_t)(((256 < indexVectorSize) ? 256 : indexVectorSize)) : ((
int64_t)(indexVectorSize) / (
int64_t)(((256 < indexVectorSize) ? 256 : indexVectorSize))) + 1)),
uint32_c(1),
uint32_c(1));
130 internal_reactionkernelindexed_1_single_precision_cuda_boundary_ReactionKernelIndexed_1_single_precision_CUDA::
reactionkernelindexed_1_single_precision_cuda_boundary_ReactionKernelIndexed_1_single_precision_CUDA<<<
_grid,
_block, 0,
stream>>>(_data_indexVector, _data_rho_0, _stride_rho_0_0, _stride_rho_0_1, _stride_rho_0_2, indexVectorSize, order_0, rate_coefficient, stoech_0);
#define FUNC_PREFIX
\file AdvectiveFluxKernel_double_precision.cpp \author pystencils
#define RESTRICT
\file AdvectiveFluxKernel_double_precision.h \author pystencils
void outer(IBlock *block, gpuStream_t stream=nullptr)
void inner(IBlock *block, gpuStream_t stream=nullptr)
void run(IBlock *block, gpuStream_t stream=nullptr)
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
static double * block(double *p, std::size_t index, std::size_t size)
static FUNC_PREFIX float *RESTRICT int64_t const _stride_rho_0_0
static FUNC_PREFIX float *RESTRICT int64_t const int64_t const int64_t const int32_t float order_0
static FUNC_PREFIX float *RESTRICT int64_t const int64_t const _stride_rho_0_1
static FUNC_PREFIX float *RESTRICT int64_t const int64_t const int64_t const _stride_rho_0_2
static FUNC_PREFIX __launch_bounds__(256) void reactionkernelindexed_1_single_precision_cuda_boundary_ReactionKernelIndexed_1_single_precision_CUDA(uint8_t *RESTRICT const _data_indexVector
static FUNC_PREFIX float *RESTRICT int64_t const int64_t const int64_t const int32_t indexVectorSize
static FUNC_PREFIX float *RESTRICT int64_t const int64_t const int64_t const int32_t float float rate_coefficient
static FUNC_PREFIX float *RESTRICT _data_rho_0
\file PackInfoPdfDoublePrecision.cpp \author pystencils