|
59 | 59 | #include <fairmq/Parts.h> |
60 | 60 | #include <fairmq/Socket.h> |
61 | 61 | #include <fairmq/ProgOptions.h> |
62 | | -#if __has_include(<fairmq/shmem/Message.h>) |
63 | 62 | #include <fairmq/shmem/Message.h> |
64 | | -#endif |
65 | 63 | #include <Configuration/ConfigurationInterface.h> |
66 | 64 | #include <Configuration/ConfigurationFactory.h> |
67 | 65 | #include <Monitoring/Monitoring.h> |
@@ -1046,14 +1044,6 @@ void DataProcessingDevice::fillContext(DataProcessorContext& context, DeviceCont |
1046 | 1044 | if (forwarded.matcher.lifetime != Lifetime::Condition) { |
1047 | 1045 | onlyConditions = false; |
1048 | 1046 | } |
1049 | | -#if !__has_include(<fairmq/shmem/Message.h>) |
1050 | | - if (strncmp(DataSpecUtils::asConcreteOrigin(forwarded.matcher).str, "AOD", 3) == 0) { |
1051 | | - context.canForwardEarly = false; |
1052 | | - overriddenEarlyForward = true; |
1053 | | - LOG(detail) << "Cannot forward early because of AOD input: " << DataSpecUtils::describe(forwarded.matcher); |
1054 | | - break; |
1055 | | - } |
1056 | | -#endif |
1057 | 1047 | if (DataSpecUtils::partialMatch(forwarded.matcher, o2::header::DataDescription{"RAWDATA"}) && deviceContext.processingPolicies.earlyForward == EarlyForwardPolicy::NORAW) { |
1058 | 1048 | context.canForwardEarly = false; |
1059 | 1049 | overriddenEarlyForward = true; |
@@ -2058,14 +2048,10 @@ bool DataProcessingDevice::tryDispatchComputation(ServiceRegistryRef ref, std::v |
2058 | 2048 | auto nofPartsGetter = [¤tSetOfInputs](size_t i) -> size_t { |
2059 | 2049 | return currentSetOfInputs[i].getNumberOfPairs(); |
2060 | 2050 | }; |
2061 | | -#if __has_include(<fairmq/shmem/Message.h>) |
2062 | 2051 | auto refCountGetter = [¤tSetOfInputs](size_t idx) -> int { |
2063 | 2052 | auto& header = static_cast<const fair::mq::shmem::Message&>(*currentSetOfInputs[idx].header(0)); |
2064 | 2053 | return header.GetRefCount(); |
2065 | 2054 | }; |
2066 | | -#else |
2067 | | - std::function<int(size_t)> refCountGetter = nullptr; |
2068 | | -#endif |
2069 | 2055 | return InputSpan{getter, nofPartsGetter, refCountGetter, currentSetOfInputs.size()}; |
2070 | 2056 | }; |
2071 | 2057 |
|
|
0 commit comments