Repository navigation
Handle CPU single threaded with updated driver. - #5582
Conversation
IREE recently introduced new driver `dylib-sync` which is used for single threaded. After discussion, this should be run with `taskset 80`.
|
I will apply the update of mako configs before merging the PR. |
| "adb", "shell", "LD_LIBRARY_PATH=/data/local/tmp", "taskset", | ||
| target.taskset, f"{DEVICE_ROOT}/iree-benchmark-module", |
There was a problem hiding this comment.
The PR description doesn't seem to match what's happening here. It looks like we used to run everything with tasket 80 and now we're only doing that for dylib-sync. If true, that's something I'm concerned about because we'd once again be changing the definition of the benchmarks
There was a problem hiding this comment.
@GMNGeoffrey we are introducing multithreading and single thread benchmarks, for the single thread case we will run in core7 exclusively (for now) which what taskset 80 will do, and taskset F0 for the multithreading
There was a problem hiding this comment.
That's good, but we also seem to be changing the taskset for, e.g. vulkan. I know this should be GPU bound, but I'm still quite leery of changing what we're measuring. How about instead we have single and multi-threaded benchmarks for each backend/driver?
There was a problem hiding this comment.
Ah, good catch. This is my mistake.. I somehow thought we used to benchmark with taskset f0. Let me change them all back to taskset 80.
There was a problem hiding this comment.
I don't think we do any parallelism at the HAL/runtime side so we can always keep vulkan single threaded .
unpinning HAL from core7 might affect or not the overall performance depends on how expensive these HAL command buffers and other vulkan-hal stuff cc: @benvanik @antiagainst they know more here :)
There was a problem hiding this comment.
I think this is a separate problem. This PR basically refactors/exposes more options to TargetInfo, and correct single threaded version to use dylib-sync driver. I'm happy to address the issue in another PR if this is a concern.
There was a problem hiding this comment.
I think it still makes sense to keep it pinned for consistency. It's not just specifying single-threaded, it's also pinning to big core
| "adb", "shell", "LD_LIBRARY_PATH=/data/local/tmp", "taskset", | ||
| target.taskset, f"{DEVICE_ROOT}/iree-benchmark-module", |
There was a problem hiding this comment.
@GMNGeoffrey we are introducing multithreading and single thread benchmarks, for the single thread case we will run in core7 exclusively (for now) which what taskset 80 will do, and taskset F0 for the multithreading
| TargetInfo(name="dylib-llvm-aot", | ||
| TargetInfo(driver="vmla", | ||
| hal_target_backend="vmla", | ||
| taskset="f0", |
There was a problem hiding this comment.
to have a fair comparison between vmla and dylib-sync lets keep both running on the same core with taskset=f0
There was a problem hiding this comment.
I think they should all be taskset=80?
IREE recently introduced new driver
dylib-syncwhich is used forsingle threaded. After discussion, this should run with
taskset 80,and the multithreaded version should run with
taskset f0. The PRalso makes taskset configurable.
This is a step towards #4752