- 论坛徽章:
- 89
|
本帖最后由 fender0107401 于 2012-09-30 22:43 编辑
Hello everyone:
As I didn't install any input method, I have to write this in English and sorry about that.
Here is the thing. I am learning OpenMP right now. I found that seems OpenMP only slow down my program.
For instance, I take the following codes to speed up something.
- #pragma omp parallel for num_threads(x)
复制代码 But I found that "x = 1" will only need 40 second and:
x = 2 needs 50
x = 3 needs 60
x = 4 needs 70
Why?
When x = 4, the top is so fun!
|
|