Some parallel loops cannot be vectorized

This commit is contained in:
Dan Paulat 2025-06-13 00:16:32 -05:00
parent 012d70b3a2
commit e86fec8d99
3 changed files with 7 additions and 7 deletions

View file

@ -175,7 +175,7 @@ public:
level2ChunksProviderManager_->Disable();
std::shared_lock lock(level3ProviderManagerMutex_);
std::for_each(std::execution::par_unseq,
std::for_each(std::execution::par,
level3ProviderManagerMap_.begin(),
level3ProviderManagerMap_.end(),
[](auto& p)
@ -693,7 +693,7 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group,
auto availableProducts =
providerManager->provider_->GetAvailableProducts();
if (std::find(std::execution::par_unseq,
if (std::find(std::execution::par,
availableProducts.cbegin(),
availableProducts.cend(),
product) != availableProducts.cend())
@ -920,13 +920,13 @@ RadarProductManager::GetActiveVolumeTimes(
// For each provider (in parallel)
std::for_each(
std::execution::par_unseq,
std::execution::par,
providers.begin(),
providers.end(),
[&](const std::shared_ptr<provider::NexradDataProvider>& provider)
{
// For yesterday, today and tomorrow (in parallel)
std::for_each(std::execution::par_unseq,
std::for_each(std::execution::par,
dates.begin(),
dates.end(),
[&](const auto& date)
@ -1246,7 +1246,7 @@ void RadarProductManagerImpl::PopulateProductTimes(
std::mutex volumeTimesMutex {};
// For yesterday, today and tomorrow (in parallel)
std::for_each(std::execution::par_unseq,
std::for_each(std::execution::par,
dates.begin(),
dates.end(),
[&](const auto& date)

View file

@ -62,7 +62,7 @@ LoadImageResources(const std::vector<std::string>& urlStrings)
std::mutex m {};
std::vector<std::shared_ptr<boost::gil::rgba8_image_t>> images {};
std::for_each(std::execution::par_unseq,
std::for_each(std::execution::par,
urlStrings.begin(),
urlStrings.end(),
[&](auto& urlString)

View file

@ -449,7 +449,7 @@ TextureAtlas::Impl::LoadImage(const std::string& imagePath, double scale)
if (numChannels == 3)
{
std::for_each(
std::execution::par_unseq,
std::execution::par,
view.begin(),
view.end(),
[](boost::gil::rgba8_pixel_t& pixel)