Skip to content

Commit fc9019d

Browse files
committed
allow core using taskset
1 parent 6a5ebb0 commit fc9019d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/tritonbench.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ jobs:
168168
run: |
169169
set -eux
170170
171-
taskset -pc $$
171+
allowed_cores=$(sed -n "s/.*: \([0-9][0-9]*\)-.*/\1/p" $(taskset -pc $$))
172+
echo "docker allowed core: ${allowed_core}"
172173
# using `--cpuset-cpus <SINGLE_CPU_CORE>` is critical for stabilizing the performance
173174
# on this runner (using SPR CPU). This might be related to task migration/Speed Select, etc.
174175
# here, we are just picking a random CPU core (core 10).
@@ -178,7 +179,7 @@ jobs:
178179
-e DEVICE_NAME \
179180
-e DEVICE_TYPE \
180181
-e CONDA_ENV \
181-
--cpuset-cpus 145 \
182+
--cpuset-cpus "${allowed_core}" \
182183
--ipc=host \
183184
--tty \
184185
--detach \

0 commit comments

Comments
 (0)