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.
15  {
16  std::size_t constSizeBytes{0};
17  std::size_t localSizeBytes{0};
18  std::size_t sharedSizeBytes{0};
20  int numRegs{0};
21  // This field is ptx or isa version if the backend is GPU
22  int asmVersion{0};
24  };
25 } // namespace alpaka
The alpaka accelerator library.
Kernel function attributes struct. Attributes are filled by calling the API of the accelerator using ...