mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:40:06 +00:00 
			
		
		
		
	Some parallel loops cannot be vectorized
This commit is contained in:
		
							parent
							
								
									012d70b3a2
								
							
						
					
					
						commit
						e86fec8d99
					
				
					 3 changed files with 7 additions and 7 deletions
				
			
		|  | @ -175,7 +175,7 @@ public: | ||||||
|       level2ChunksProviderManager_->Disable(); |       level2ChunksProviderManager_->Disable(); | ||||||
| 
 | 
 | ||||||
|       std::shared_lock lock(level3ProviderManagerMutex_); |       std::shared_lock lock(level3ProviderManagerMutex_); | ||||||
|       std::for_each(std::execution::par_unseq, |       std::for_each(std::execution::par, | ||||||
|                     level3ProviderManagerMap_.begin(), |                     level3ProviderManagerMap_.begin(), | ||||||
|                     level3ProviderManagerMap_.end(), |                     level3ProviderManagerMap_.end(), | ||||||
|                     [](auto& p) |                     [](auto& p) | ||||||
|  | @ -693,7 +693,7 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group, | ||||||
|                auto availableProducts = |                auto availableProducts = | ||||||
|                   providerManager->provider_->GetAvailableProducts(); |                   providerManager->provider_->GetAvailableProducts(); | ||||||
| 
 | 
 | ||||||
|                if (std::find(std::execution::par_unseq, |                if (std::find(std::execution::par, | ||||||
|                              availableProducts.cbegin(), |                              availableProducts.cbegin(), | ||||||
|                              availableProducts.cend(), |                              availableProducts.cend(), | ||||||
|                              product) != availableProducts.cend()) |                              product) != availableProducts.cend()) | ||||||
|  | @ -920,13 +920,13 @@ RadarProductManager::GetActiveVolumeTimes( | ||||||
| 
 | 
 | ||||||
|    // For each provider (in parallel)
 |    // For each provider (in parallel)
 | ||||||
|    std::for_each( |    std::for_each( | ||||||
|       std::execution::par_unseq, |       std::execution::par, | ||||||
|       providers.begin(), |       providers.begin(), | ||||||
|       providers.end(), |       providers.end(), | ||||||
|       [&](const std::shared_ptr<provider::NexradDataProvider>& provider) |       [&](const std::shared_ptr<provider::NexradDataProvider>& provider) | ||||||
|       { |       { | ||||||
|          // For yesterday, today and tomorrow (in parallel)
 |          // For yesterday, today and tomorrow (in parallel)
 | ||||||
|          std::for_each(std::execution::par_unseq, |          std::for_each(std::execution::par, | ||||||
|                        dates.begin(), |                        dates.begin(), | ||||||
|                        dates.end(), |                        dates.end(), | ||||||
|                        [&](const auto& date) |                        [&](const auto& date) | ||||||
|  | @ -1246,7 +1246,7 @@ void RadarProductManagerImpl::PopulateProductTimes( | ||||||
|    std::mutex                                      volumeTimesMutex {}; |    std::mutex                                      volumeTimesMutex {}; | ||||||
| 
 | 
 | ||||||
|    // For yesterday, today and tomorrow (in parallel)
 |    // For yesterday, today and tomorrow (in parallel)
 | ||||||
|    std::for_each(std::execution::par_unseq, |    std::for_each(std::execution::par, | ||||||
|                  dates.begin(), |                  dates.begin(), | ||||||
|                  dates.end(), |                  dates.end(), | ||||||
|                  [&](const auto& date) |                  [&](const auto& date) | ||||||
|  |  | ||||||
|  | @ -62,7 +62,7 @@ LoadImageResources(const std::vector<std::string>& urlStrings) | ||||||
|    std::mutex                                              m {}; |    std::mutex                                              m {}; | ||||||
|    std::vector<std::shared_ptr<boost::gil::rgba8_image_t>> images {}; |    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.begin(), | ||||||
|                  urlStrings.end(), |                  urlStrings.end(), | ||||||
|                  [&](auto& urlString) |                  [&](auto& urlString) | ||||||
|  |  | ||||||
|  | @ -449,7 +449,7 @@ TextureAtlas::Impl::LoadImage(const std::string& imagePath, double scale) | ||||||
|          if (numChannels == 3) |          if (numChannels == 3) | ||||||
|          { |          { | ||||||
|             std::for_each( |             std::for_each( | ||||||
|                std::execution::par_unseq, |                std::execution::par, | ||||||
|                view.begin(), |                view.begin(), | ||||||
|                view.end(), |                view.end(), | ||||||
|                [](boost::gil::rgba8_pixel_t& pixel) |                [](boost::gil::rgba8_pixel_t& pixel) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat