Conversation
ba86fc3 to
733f83b
Compare
|
I tested OpenMP with the MinGW build on a real Windows 10, and it worked. Actually, it was a 4-cores CPU and I could use all cores (while on Linux on the same machine, I have to use half cores…). I notice that on Wine on Linux, on a 16-core/32-threads CPU, I would lose performance above 4 threads. I have not tested yet a Windows machine with more than 4 cores, but at least we can confidently enable 4 OpenMP cores on MinGW. |
733f83b to
a6bfe60
Compare
|
I wanted to test the MTT S80 on Windows, as running Dæmon on this GPU is known to benefit greatly from OpenMP, but unfortunately the motherboard the MTT S80 was plugged in did not enabled ReBAR for it and the Windows driver for the MTT-s80 requires ReBAR. But I could test OpenMP running the engine on Windows using another GPU and temporarily disabling vbo models. |
| - 4 threads on high-end 16-cores/32-threads Ryzen Threadripper PRO 3955WX. | ||
|
|
||
| Performance regression has been observed above 4 threads on Wine on Linux. */ | ||
| static constexpr int threadDivisor = 1; |
There was a problem hiding this comment.
It would be better to remove static from each case of static constexpr.
| #else | ||
| /* On Linux, using half threads than available is known to work best with: | ||
|
|
||
| - 2 threads on low-end 4-core (no SMP) Ryzen 3 3200G, |
There was a problem hiding this comment.
I guess you meant 'hyperthreading' instead of SMP (which would refer to any multi-thread capability at all). Apparently AMD calls it SMT.
Configure OpenMP for Windows