Skip to content

Commit

Permalink
SceneAlgo : DEBUG, DO NOT MERGE
Browse files Browse the repository at this point in the history
Trying to figure out why the SceneWriter tests might be hanging on CI.
  • Loading branch information
johnhaddon committed Jan 27, 2025
1 parent 852d4c8 commit 826863e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/GafferScene/SceneAlgo.inl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ void parallelGatherLocations( const ScenePlug *scene, LocationFunctor &&location

using LocationResult = std::invoke_result_t<LocationFunctor, const ScenePlug *, const ScenePlug::ScenePath &>;
tbb::concurrent_bounded_queue<std::optional<LocationResult>> queue;
queue.set_capacity( tbb::this_task_arena::max_concurrency() );
queue.set_capacity( std::max( tbb::this_task_arena::max_concurrency(), 1 ) );

std::cerr << "MAX CONCURRENCY " << tbb::this_task_arena::max_concurrency() << std::endl;
std::cerr << "CAPACITY " << queue.capacity() << std::endl;

auto locationFunctorWrapper = [&] ( const ScenePlug *scene, const ScenePlug::ScenePath &path ) {
queue.push( locationFunctor( scene, path ) );
Expand Down

0 comments on commit 826863e

Please sign in to comment.