Skip to content

Parallel workflow still operates on several workers even when do is set to false #258

@Remi-Gau

Description

@Remi-Gau

another thing is I was trying in my analysis pipeline (in getOption.m file), the below lines:

opt.parallelize.do = false;
  opt.parallelize.nbWorkers = 4;
  opt.parallelize.killOnExit = false;

But it still goes into the parallel processing. Do you have any guess what I might be doing wrong? I thought with opt.paralleize.do = false would make parfor loop behave as if for loop.

Ha yes that's the part that might need some documentation.

If set to false it means that it should only take one core to run the "parallel" loops. Which effectively is therefore NOT parallel then.

This should be set here.

https://github.com/cpp-lln-lab/CPP_SPM/blob/b01afdcb081d23d524f030a02cba82300d9d51b9/src/utils/manageWorkersPool.m#L23

But seeing this now, I get the feeling that I have not coded this properly. Will open an issue to fix that in a separate PR.

Originally posted by @Remi-Gau in #257 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions