Closed bstefanuk closed 2 months ago
Do we have any test to verify CpuThreads=1? How to verify no joblib case?
Do we have any test to verify CpuThreads=1? How to verify no joblib case?
@nakajee I have confirmed both of the following scenarios:
> UserWarning: Missing dependency 'joblib', program will run without parallelism
...
# Reading logic files: 1 thread(s), 154 tasks .............................. 100.0% (took 14.3 secs)
--jobs=1
doesn't display the warning, but runs only on 1 thread.
# Reading logic files: 1 thread(s), 154 tasks .............................. 100.0% (took 14.4 secs)
Is --jobs=1 same as globalParameters["CpuThreads"]=1?
Do we have any unit test for TensileCreateLibrary?
Is --jobs=1 same as globalParameters["CpuThreads"]=1?
Yes, setting --jobs=1
is equivalent to setting globalParameters["CpuThreads"] = 1
Do we have any unit test for TensileCreateLibrary?
Yes, we have numerous unit tests for Tensile. See Tensile/Tests/unit/test_TensileCreateLibrary.py
Summary:
To improve the overall performance of Tensile, it is important to able to run in single-threaded mode. This enables better visibility into the profiling outputs because the most compute intensive functions are hidden behind joblib's pipelining primitives.
Outcomes:
Single-threaded operations are now supported.
Notable changes:
Improved test coverage on core functions in TensileCreateLibrary in addition to printing updates.
Testing and Environment:
pip3 uninstall joblib
and confirmed that the appropriate warning is emitted.