Project
Loading...
Searching...
No Matches
TrackingConfigParam.cxx
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
12#include <boost/property_tree/ptree.hpp>
13
14#include "Framework/Logger.h"
16
20
21namespace o2::its
22{
23
25{
27 return;
28 }
29 const auto name = getName();
30 auto members = getDataMembers();
31 for (auto member : *members) {
32 if (!member.name.ends_with(BlocksName) && !member.name.ends_with(ThreadsName)) {
33 if (nBlocks != OverrideValue && member.name.starts_with(BlocksName) && (member.value != nBlocks)) {
34 o2::conf::ConfigurableParam::setValue<int>(name, member.name, nBlocks);
35 }
36 if (nThreads != OverrideValue && member.name.starts_with(ThreadsName) && (member.value != nThreads)) {
37 o2::conf::ConfigurableParam::setValue<int>(name, member.name, nThreads);
38 }
39 }
40 }
41 LOGP(info, "Overwriting gpu threading parameters");
42} // namespace o2::its
43
44} // namespace o2::its
#define O2ParamImpl(classname)
GLuint const GLchar * name
Definition glcorearb.h:781
static constexpr char const * BlocksName
static constexpr char const * ThreadsName