-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
slower result when using omp #140
Comments
is it because the variable "image" was locked when it was been written that other threads can't use it ,which resulted in a slower speed than serial computing? |
Is the behavior same with a simple #pragma omp parallel for ? |
yes it is, i've tried a simple #pragma omp parallel for but with the same result |
I am curious. Can you try the code from master branch in my repository with and without this #pragma ? Line 41 in 6d3acdb
|
|
i see nothing wrong with your code, if you find the problem please share |
when writting the Triangle() function ,i get a much slower result when i used omp parallel,(2 times slower infact),
The text was updated successfully, but these errors were encountered: