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

Enable parallel processing in CTAP #26

Open
zenBen opened this issue Sep 13, 2018 · 0 comments
Open

Enable parallel processing in CTAP #26

zenBen opened this issue Sep 13, 2018 · 0 comments
Assignees

Comments

@zenBen
Copy link
Member

zenBen commented Sep 13, 2018

The parfor loop enables parallel processing in Matlab by starting a 'worker pool' and assigning loop iterations to different workers. It would be quite valuable since CTAP can become very slow for branching pipes with many measurements, especially running, e.g., CTAP_peek_data or ICA.

While it is trivial to change for to parfor, there are caveats.

  1. parfor does not run iterations in assigned order, so it cannot be used for the loops that run CTAP steps, step sets, or branch pipes. Parallel processing would seem to work only for measurements
  2. apparently parfor is incompatible with some of the code inside the measurements' for loop, e.g. the clear function, or nested functions. These would need to be changed before using parfor
@zenBen zenBen self-assigned this Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant