Commit dac5577
Build: enable parallel source file compilation on MSVC (AcademySoftwareFoundation#2072)
By default Visual Studio projects do not compile source files in
parallel. Add "/MP" flag to enable that.
From scratch OCIO build on Ryzen 5950X, VS2022: 580sec -> 208sec.
Most of remaining single-threaded time is cloning external libraries
or building external libraries (most of them don't do parallel
compilation either). But within building OCIO itself, CPU usage
goes close to 100% instead of 5%.
Signed-off-by: Aras Pranckevicius <[email protected]>
Co-authored-by: Doug Walker <[email protected]>
Signed-off-by: Chris Nash <[email protected]>1 parent 64c1321 commit dac5577
File tree
1 file changed
+3
-0
lines changed1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
0 commit comments