Project
Loading...
Searching...
No Matches
GPUDefParametersConstants.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
15// This file contains compile-time constants, independent from the backend
16
17#ifndef GPUDEFPARAMETERSCONSTANTS_H
18#define GPUDEFPARAMETERSCONSTANTS_H
19// clang-format off
20
21#if defined(__CUDACC__) || defined(__HIPCC__)
22 #define GPUCA_SPECIALIZE_THRUST_SORTS // Not compiled with RTC, so must be compile-time constant
23#endif
24
25#define GPUCA_MAX_THREADS 1024
26#define GPUCA_MAX_STREAMS 36
27
28#define GPUCA_ROWALIGNMENT 16 // Align of Row Hits and Grid
29#define GPUCA_BUFFER_ALIGNMENT 64 // Alignment of buffers obtained from SetPointers
30#define GPUCA_MEMALIGN (64 * 1024) // Alignment of allocated memory blocks
31
32// Default maximum numbers
33#define GPUCA_MAX_CLUSTERS ((size_t) 1024 * 1024 * 1024) // Maximum number of TPC clusters
34#define GPUCA_MAX_TRD_TRACKLETS ((size_t) 128 * 1024) // Maximum number of TRD tracklets
35#define GPUCA_MAX_ITS_FIT_TRACKS ((size_t) 96 * 1024) // Max number of tracks for ITS track fit
36#define GPUCA_MEMORY_SIZE ((size_t) 6 * 1024 * 1024 * 1024) // Size of memory allocated on Device
37#define GPUCA_HOST_MEMORY_SIZE ((size_t) 1 * 1024 * 1024 * 1024) // Size of memory allocated on Host
38#define GPUCA_GPU_STACK_SIZE ((size_t) 8 * 1024) // Stack size per GPU thread
39#define GPUCA_GPU_HEAP_SIZE ((size_t) 16 * 1025 * 1024) // Stack size per GPU thread
40
41// clang-format on
42#endif // GPUDEFPARAMETERSCONSTANTS_H