Skip to content

setup.py ignores the requested CMake build parallelism #35

Open

Description

@xadupre

Found while diagnosing the local in-place build failure for #34.

In cmake_build_class_extension.build_cmake (setup.py), the -- -j... arguments are appended to cmake_args after the configure command has already been constructed. The subsequent build command is constructed separately and never receives these arguments.

Observed: python setup.py build_ext --inplace invokes cmake --build <path> --config Release without any parallelism option and runs compilation serially. The same issue affects --parallel.

Expected: pass the requested parallelism to the actual build command, using all available processors by default, while leaving configuration arguments unchanged.

This is independent of the CUDA-driver probe causing the reported crash and is deferred outside the current PR fix.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions