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

Feature Request: Parallel processing #55

Closed
timothyslau opened this issue Sep 22, 2021 · 4 comments
Closed

Feature Request: Parallel processing #55

timothyslau opened this issue Sep 22, 2021 · 4 comments

Comments

@timothyslau
Copy link

timothyslau commented Sep 22, 2021

I'm running pairwise() on two large vectors and wondered if there was a simple way to distribute this computation across multiple cores?

@matthieugomez
Copy link
Owner

This already uses multi threading

Threads.@threads for j in (i+1):length(xs)

@timothyslau
Copy link
Author

timothyslau commented Sep 22, 2021

Weird, it seemed like it was only using 1 core last night.l on my MBP.

@matthieugomez
Copy link
Owner

Maybe it’s because multicore != multithreaded. Also, be sure to start julia with multiple threads.

@timothyslau
Copy link
Author

The multi-thread suggestion was right on the nose. Is there a way to run this on my GPU to get further speedups?

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

No branches or pull requests

2 participants