Project
Loading...
Searching...
No Matches
GPUReconstructionIncludes.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#ifndef GPURECONSTRUCTIONINCLUDES_H
16#define GPURECONSTRUCTIONINCLUDES_H
17
18#ifndef WIN32
19#include <sys/syscall.h>
20#include <semaphore.h>
21#include <fcntl.h>
22#include <sched.h>
23#endif
24
25#include "GPUDef.h"
26#include "GPULogging.h"
27#include "GPUDataTypes.h"
28
29#include <iostream>
30#include <fstream>
31
32#define GPUCA_GPUReconstructionUpdateDefaults() \
33 if (mProcessingSettings.trackletConstructorInPipeline < 0) { \
34 mProcessingSettings.trackletConstructorInPipeline = GPUCA_CONSTRUCTOR_IN_PIPELINE; \
35 } \
36 if (mProcessingSettings.trackletSelectorInPipeline < 0) { \
37 mProcessingSettings.trackletSelectorInPipeline = GPUCA_SELECTOR_IN_PIPELINE; \
38 } \
39 if (mProcessingSettings.trackletSelectorSectors < 0) { \
40 mProcessingSettings.trackletSelectorSectors = GPUCA_TRACKLET_SELECTOR_SECTOR_COUNT; \
41 } \
42 if (mProcessingSettings.alternateBorderSort < 0) { \
43 mProcessingSettings.alternateBorderSort = GPUCA_ALTERNATE_BORDER_SORT; \
44 } \
45 if (mProcessingSettings.mergerSortTracks < 0) { \
46 mProcessingSettings.mergerSortTracks = GPUCA_SORT_BEFORE_FIT; \
47 } \
48 if (param().rec.tpc.looperInterpolationInExtraPass < 0) { \
49 param().rec.tpc.looperInterpolationInExtraPass = GPUCA_MERGER_SPLIT_LOOP_INTERPOLATION; \
50 } \
51 if (mProcessingSettings.tpcCompressionGatherModeKernel < 0) { \
52 mProcessingSettings.tpcCompressionGatherModeKernel = GPUCA_COMP_GATHER_KERNEL; \
53 } \
54 if (mProcessingSettings.tpcCompressionGatherMode < 0) { \
55 mProcessingSettings.tpcCompressionGatherMode = GPUCA_COMP_GATHER_MODE; \
56 }
57
58#endif