dotnet / dotnet/machinelearning
FastForest multithreading
- Dominant language
- C#
- Stars
- 9.4k
- Forks
- 2k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 11
Description
**System Information (please complete the following information):**
- OS & Version: Windows 10 19044.1706
- ML.NET Version: 1.7.1 x64
- .NET Version: v4.8 x64
**Describe the bug**
I'm running tests with FastForest on machine with 2 processors with 12 cores each with a total of 48 threads, the program running the test is using 48 threads, but the highest CPU the program gets is 14%, which 7 maybe 8 threads. This leads me to believe the FastForest training algo is doing some locking.
**To Reproduce**
Steps to reproduce the behavior:
1. Create as many threads as the machine has
2. var trainer = context.BinaryClassification.Trainers.FastForest(label, numberOfTrees: trees);
3. var trained = trainer.Fit(inputs);
4. look at CPU usage
**Expected behavior**
CPU usage at 100% not significantly less
**Screenshots, Code, Sample Projects**


**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.