-
Notifications
You must be signed in to change notification settings - Fork 2k
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
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),
![fd653ba9ace43bf3f707a4f73c0e103](https://private-user-images.githubusercontent.com/87789666/323892707-5efb9184-b29d-45b5-872c-f3a9907037cb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwMjg4MzIsIm5iZiI6MTcyNTAyODUzMiwicGF0aCI6Ii84Nzc4OTY2Ni8zMjM4OTI3MDctNWVmYjkxODQtYjI5ZC00NWI1LTg3MmMtZjNhOTkwNzAzN2NiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMwVDE0MzUzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjOWQ4N2NmMTAyOTExMGMyMzgwMWNiNTRlNTc1MTE5YzI2N2EzODIyNjBhYmNhMGY0ZDY5ZWE5ZWJlYzAxYWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Eqb8r5Y-Ks4ZlSUCoKVqYj2mXiiXQcXj4VDpwKiTcdA)
The text was updated successfully, but these errors were encountered: