alpaka
Abstraction Library for Parallel Kernel Acceleration
KernelFunctionAttributes.hpp
Go to the documentation of this file.
1
/* Copyright 2022 René Widera, Mehmet Yusufoglu
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include <cstddef>
8
9
namespace
alpaka
10
{
11
//! Kernel function attributes struct. Attributes are filled by calling the API of the accelerator using the kernel
12
//! function as an argument. In case of a CPU backend, maxThreadsPerBlock is set to 1 and other values remain zero
13
//! since there are no correponding API functions to get the values.
14
struct
KernelFunctionAttributes
15
{
16
std::size_t
constSizeBytes
{0};
17
std::size_t
localSizeBytes
{0};
18
std::size_t
sharedSizeBytes
{0};
19
int
maxDynamicSharedSizeBytes
{0};
20
int
numRegs
{0};
21
// This field is ptx or isa version if the backend is GPU
22
int
asmVersion
{0};
23
int
maxThreadsPerBlock
{0};
24
};
25
}
// namespace alpaka
alpaka
The alpaka accelerator library.
Definition:
AccCpuOmp2Blocks.hpp:49
alpaka::KernelFunctionAttributes
Kernel function attributes struct. Attributes are filled by calling the API of the accelerator using ...
Definition:
KernelFunctionAttributes.hpp:15
alpaka::KernelFunctionAttributes::constSizeBytes
std::size_t constSizeBytes
Definition:
KernelFunctionAttributes.hpp:16
alpaka::KernelFunctionAttributes::localSizeBytes
std::size_t localSizeBytes
Definition:
KernelFunctionAttributes.hpp:17
alpaka::KernelFunctionAttributes::sharedSizeBytes
std::size_t sharedSizeBytes
Definition:
KernelFunctionAttributes.hpp:18
alpaka::KernelFunctionAttributes::maxThreadsPerBlock
int maxThreadsPerBlock
Definition:
KernelFunctionAttributes.hpp:23
alpaka::KernelFunctionAttributes::maxDynamicSharedSizeBytes
int maxDynamicSharedSizeBytes
Definition:
KernelFunctionAttributes.hpp:19
alpaka::KernelFunctionAttributes::asmVersion
int asmVersion
Definition:
KernelFunctionAttributes.hpp:22
alpaka::KernelFunctionAttributes::numRegs
int numRegs
Definition:
KernelFunctionAttributes.hpp:20
include
alpaka
kernel
KernelFunctionAttributes.hpp
Generated on Thu Nov 21 2024 22:46:14 for alpaka by
1.9.1