Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colcon build executor not affecting make -j command #657

Open
YossiO-BWR opened this issue Jul 25, 2024 · 1 comment
Open

colcon build executor not affecting make -j command #657

YossiO-BWR opened this issue Jul 25, 2024 · 1 comment

Comments

@YossiO-BWR
Copy link

Issue

When trying to limit the building threads with either colcon build --parallel-workers 2 or colcon build --executor sequential, the underlying make command is still called with the number of available threads.

In catkin build we had the --jobs and --parallel-packages parameters.

In colcon build the executor seems to be similar to the --parallel-packages parameter.

image

image

Desired behavior

--jobs parameter to catkin build

-j JOBS, --jobs JOBS Maximum number of build jobs to be distributed across active packages. (default is cpu count)

Possible workaround

Using export MAKEFLAGS="-j2" seems to limit the number of jobs per package
image

Other ideas are welcome, to the point of manually modifying the colcon_core/../build.py

@christophebedard
Copy link
Contributor

See colcon/colcon-parallel-executor#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants