Support independent CPU and GPU workloads on the same node
Summary
Worklaods can now run CPU and GPU tasks on each host. The caveat is that the fragments for these tasks need to be independent.
Implementation Notes :hammer_and_pick:
GPU is called accel in most places because CPU and GPU only differ by one letter, which can lead to more programming errors. Using accel instead of GPU guards against that.
The fragments file can now have GPU fragments. These fragments have the is_gpu column set to true. When the flag is set the cpu_usage column is instead used as GPU usage.
The topology now has accel and accelPowerModel fields. The options for these are the same as those for the cpu and cpuPowerModel fields.
Check gpu/single_1_2000.json topology file in experiments-base test resources for an example.
The GPU (accel) implementation uses many classes with CPU in the name, as the required parameters are the same. For example, CpuPowerModel, HostCpuStats, etc. We can rename them to generalize better in the future.
External Dependencies :four_leaf_clover:
Breaking API Changes :warning:
Simply specify none (N/A) if not applicable.
Codecov Report
Attention: Patch coverage is 77.07317% with 94 lines in your changes missing coverage. Please review.
Project coverage is 54.80%. Comparing base (
3a370ec) to head (d574070). Report is 1 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #331 +/- ##
=============================================
+ Coverage 0 54.80% +54.80%
- Complexity 0 52 +52
=============================================
Files 0 340 +340
Lines 0 11505 +11505
Branches 0 1139 +1139
=============================================
+ Hits 0 6305 +6305
- Misses 0 4845 +4845
- Partials 0 355 +355
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.