55 const std::vector<ConfigParamSpec>& workflowOptions,
56 const std::vector<DeviceSpec>& deviceSpecs,
64 std::vector<DeviceExecution> deviceExecutions(deviceSpecs.size());
65 std::vector<DeviceControl> deviceControls(deviceSpecs.size());
66 std::vector<DataProcessorInfo> dataProcessorInfos;
67 for (
auto& [
name, _] : matrix) {
70 .executable =
"executable-name",
72 .workflowOptions = workflowOptions,
85 const auto& deviceSpec = deviceSpecs[
index];
86 const auto& deviceExecution = deviceExecutions[
index];
87 std::stringstream execArgs;
88 for (
const auto& arg : deviceExecution.args) {
93 execArgs <<
" " << arg;
95 for (
auto const& testCase : matrix[deviceSpec.name]) {
96 INFO(std::string(
"can not find option: ") + testCase.first +
" " + testCase.second);
97 REQUIRE(
search(deviceExecution, testCase.first, testCase.second));
104 int lm[1][2] = {{1, 2}};
105 std::vector<ConfigParamSpec> workflowOptions{
110 std::string labeledDefault = R
"({"labels_rows":["r"],"labels_cols":["c1","c2"],"values":[[1,2]]})";
111 std::string labeledOther = R"({"labels_rows":["r"],"labels_cols":["c1","c2"],"values":[[3,4]]})";
118 {
OutputSpec{{
"output"},
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe}},
124 {
InputSpec{
"input",
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe}},
132 std::vector<DeviceSpec> deviceSpecs;
135 auto rm = std::make_unique<SimpleResourceManager>(resources);
146 *rm,
"workflow-id", *configContext);
153 matrix[
"processor0"] = {{
"--depth",
"1"}, {
"--foo",
"bar"}, {
"--mode",
"default"}};
154 matrix[
"processor1"] = matrix[
"processor0"];
155 check({}, workflowOptions, deviceSpecs, matrix);
158 check({
"--unknown",
"option"}, workflowOptions, deviceSpecs, matrix);
161 matrix[
"processor0"] = {{
"--depth",
"1"}, {
"--foo",
"bar"}, {
"--mode",
"silly"}};
162 matrix[
"processor1"] = matrix[
"processor0"];
163 check({
"--mode",
"silly"}, workflowOptions, deviceSpecs, matrix);
166 matrix[
"processor0"] = {{
"--depth",
"1"}, {
"--foo",
"bar"}, {
"--mode",
"silly"}};
167 matrix[
"processor1"] = {{
"--depth",
"1"}, {
"--foo",
"bar"}, {
"--mode",
"default"}};
168 check({
"--processor0",
"--mode silly"}, workflowOptions, deviceSpecs, matrix);
171 matrix[
"processor0"] = {{
"--depth",
"1"}, {
"--foo",
"bar"}, {
"--mode",
"silly"}};
172 matrix[
"processor1"] = {{
"--depth",
"1"}, {
"--foo",
"bar"}, {
"--mode",
"advanced"}};
173 check({
"--mode",
"advanced",
"--processor0",
"--mode silly"}, workflowOptions, deviceSpecs, matrix);
176 matrix[
"processor0"] = {{
"--depth",
"2"}, {
"--foo",
"bar"}, {
"--mode",
"default"}};
177 matrix[
"processor1"] = matrix[
"processor0"];
178 check({
"--depth",
"2"}, workflowOptions, deviceSpecs, matrix);
181 matrix[
"processor0"] = {{
"--depth",
"2"}, {
"--foo",
"bar"}, {
"--mode",
"silly"}};
182 matrix[
"processor1"] = {{
"--depth",
"2"}, {
"--foo",
"bar"}, {
"--mode",
"default"}};
183 check({
"--depth",
"2",
"--processor0",
"--mode silly"}, workflowOptions, deviceSpecs, matrix);
186 matrix[
"processor0"] = {{
"--depth",
"1"}, {
"--labeled", labeledDefault}};
187 matrix[
"processor1"] = matrix[
"processor0"];
188 check({}, workflowOptions, deviceSpecs, matrix);
189 matrix[
"processor0"] = {{
"--depth",
"1"}, {
"--labeled", labeledOther}};
190 matrix[
"processor1"] = matrix[
"processor0"];
191 check({
"--labeled", labeledOther}, workflowOptions, deviceSpecs, matrix);
239 std::vector<DataProcessorInfo> infos = {
240 {{}, {}, {
"--readers",
"2"}},
243 infos,
"--readers",
nullptr, 1, [](
long long x,
long long y) {
return x >
y ?
x :
y; });
244 REQUIRE(infos[0].cmdLineArgs[1] ==
"2");
245 REQUIRE(infos[1].cmdLineArgs[1] ==
"2");
248 std::vector<DataProcessorInfo> infos = {
252 infos,
"--readers",
nullptr, 1, [](
long long x,
long long y) {
return x >
y ?
x :
y; });
253 REQUIRE(infos[0].cmdLineArgs.size() == 0);
254 REQUIRE(infos[1].cmdLineArgs.size() == 0);
257 std::vector<DataProcessorInfo> infos = {
261 infos,
"--readers", []() {
return 1; }, 3, [](
long long x,
long long y) {
return x >
y ?
x :
y; });
262 REQUIRE(infos[0].cmdLineArgs.size() == 2);
263 REQUIRE(infos[1].cmdLineArgs.size() == 2);
264 REQUIRE(infos[0].cmdLineArgs[1] ==
"1");
265 REQUIRE(infos[1].cmdLineArgs[1] ==
"1");
268 std::vector<DataProcessorInfo> infos = {
269 {{}, {}, {
"--readers",
"2"}},
270 {{}, {}, {
"--readers",
"3"}}};
272 infos,
"--readers", []() {
return 1; }, 1, [](
long long x,
long long y) {
return x >
y ?
x :
y; });
273 REQUIRE(infos[0].cmdLineArgs.size() == 2);
274 REQUIRE(infos[1].cmdLineArgs.size() == 2);
275 REQUIRE(infos[0].cmdLineArgs[1] ==
"3");
276 REQUIRE(infos[1].cmdLineArgs[1] ==
"3");
279 std::vector<DataProcessorInfo> infos = {
280 {{}, {}, {
"--readers",
"3"}},
281 {{}, {}, {
"--readers",
"2"}}};
283 infos,
"--readers", []() {
return 1; }, 1, [](
long long x,
long long y) {
return x >
y ?
x :
y; });
284 REQUIRE(infos[0].cmdLineArgs.size() == 2);
285 REQUIRE(infos[1].cmdLineArgs.size() == 2);
286 REQUIRE(infos[0].cmdLineArgs[1] ==
"3");
287 REQUIRE(infos[1].cmdLineArgs[1] ==
"3");
290 std::vector<DataProcessorInfo> infos = {
291 {.cmdLineArgs = {
"foo",
"bar",
"--readers",
"3"}},
292 {.cmdLineArgs = {
"--readers",
"2"}}};
294 infos,
"--readers", []() {
return 1; }, 1, [](
long long x,
long long y) {
return x >
y ?
x :
y; });
295 REQUIRE(infos[0].cmdLineArgs.size() == 4);
296 REQUIRE(infos[1].cmdLineArgs.size() == 2);
297 REQUIRE(infos[0].cmdLineArgs[3] ==
"3");
298 REQUIRE(infos[1].cmdLineArgs[1] ==
"3");
306 .name =
"processor0",
307 .outputs = {
OutputSpec{{
"output"},
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe}},
310 .name =
"processor1",
311 .inputs = {
InputSpec{
"input",
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe}},
318 .name =
"processor0",
319 .outputs = {
OutputSpec{{
"output"},
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe},
320 OutputSpec{{
"output2"},
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe}},
323 .name =
"processor1",
324 .inputs = {
InputSpec{
"input",
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe}},
331 .name =
"processor0",
332 .outputs = {
OutputSpec{{
"output"},
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe},
333 OutputSpec{{
"output2"},
"TST",
"DUMMYDATA", 2, Lifetime::Sporadic}},
336 .name =
"processor1",
337 .outputs = {
OutputSpec{{
"output"},
"TST",
"DUMMYDATA", 1, Lifetime::Timeframe},
338 OutputSpec{{
"output2"},
"TST",
"DUMMYDATA", 2, Lifetime::Sporadic}},
341 .name =
"processor2",
342 .inputs = {
InputSpec{
"input",
"TST",
"DUMMYDATA", 2, Lifetime::Timeframe}},
349 .name =
"processor0",
350 .outputs = {
OutputSpec{{
"output"},
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe},
351 OutputSpec{{
"output2"},
"TST",
"DUMMYDATA", 2, Lifetime::Sporadic}},
354 .name =
"processor1",
355 .outputs = {
OutputSpec{{
"output"},
"TST",
"DUMMYDATA", 0, Lifetime::Timeframe},
356 OutputSpec{{
"output2"},
"TST",
"DUMMYDATA", 2, Lifetime::Sporadic}},
359 .name =
"processor2",
360 .inputs = {
InputSpec{
"input",
"TST",
"DUMMYDATA", 2, Lifetime::Timeframe}},
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions Compile RTC in deterministic with NO_FAST_MATH flags and GPUCA_DETERMINISTIC_MODE define Use RTC to optimize GPU code h configStandalone Processing proc_rtctech Use a file lock to serialize access to the cache folder Print launch bounds used for RTC code as debugging option
static void dataProcessorSpecs2DeviceSpecs(const WorkflowSpec &workflow, std::vector< ChannelConfigurationPolicy > const &channelPolicies, std::vector< CompletionPolicy > const &completionPolicies, std::vector< DispatchPolicy > const &dispatchPolicies, std::vector< ResourcePolicy > const &resourcePolicies, std::vector< CallbacksPolicy > const &callbacksPolicies, std::vector< SendingPolicy > const &sendingPolicy, std::vector< ForwardingPolicy > const &forwardingPolicies, std::vector< DeviceSpec > &devices, ResourceManager &resourceManager, std::string const &uniqueWorkflowId, ConfigContext const &configContext, bool optimizeTopology=false, unsigned short resourcesMonitoringInterval=0, std::string const &channelPrefix="", OverrideServiceSpecs const &overrideServices={})