Skip to content

Can one limit the number of cores or threads to run in parallel? #1600

@rfryeSigma

Description

@rfryeSigma

I am running cadquery in a LatticeQuery environment which defines the function eachpointAdaptive similar to
#628 (comment). The script runs quite fast since shapes.py sets SetRunParallel true, and it recruits all processors.

But I am running on a server where it is not polite to hog the whole machine. Is there a way to tell cadquery to limit the maximum number of cores or threads to run in parallel?

Metadata

Metadata

Assignees

No one assigned

    Labels

    OCCTquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions