Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 2b2837f

Browse files
committed
mergerd
2 parents 3cd8a8f + ca59891 commit 2b2837f

File tree

5 files changed

+25
-11
lines changed

5 files changed

+25
-11
lines changed

.github/workflows/execute-test-script.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ jobs:
6868
echo 'runner_labels=["self-hosted", "amd32c", "aws"]' >> $GITHUB_OUTPUT;;
6969
amd64c)
7070
echo 'runner_labels=["self-hosted", "amd64c", "aws"]' >> $GITHUB_OUTPUT;;
71-
nvidia)
72-
echo 'runner_labels=["self-hosted", "nvidia", "aws"]' >> $GITHUB_OUTPUT;;
71+
genoa60c)
72+
echo 'runner_labels=["self-hosted", "genoa", "60c", "gcp"]' >> $GITHUB_OUTPUT;;
73+
a100)
74+
echo 'runner_labels=["self-hosted", "nvidia", "a100"]' >> $GITHUB_OUTPUT;;
75+
v100)
76+
echo 'runner_labels=["self-hosted", "nvidia", "v100"]' >> $GITHUB_OUTPUT;;
7377
*)
7478
echo "runner_labels=unknown" >> $GITHUB_OUTPUT;;
7579
esac

.github/workflows/test_amd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ on:
1010
runner_type:
1111
description: Type of runner to use
1212
required: true
13-
default: amd64c
13+
default: genoa60c
1414
type: choice
1515
options:
1616
- amd32c
1717
- amd64c
18+
- genoa60c
1819
shutdown_cloud_runner:
1920
description: Shutdown AWS cluster
2021
default: true

.github/workflows/test_nvidia.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
compiler: ${{ matrix.type.compiler }}
3939
device: ${{ matrix.type.device }}
4040
tag: ${{ inputs.tag }}
41-
runner_type: nvidia
41+
runner_type: a100
4242
test_script: ${{ matrix.test_script }}
4343
secrets:
4444
DB_URL: ${{ secrets.DB_URL }}
4545

4646
shutdown:
47-
runs-on: [self-hosted, aws, nvidia]
47+
runs-on: a100
4848
if: inputs.shutdown_cloud_runner
4949
needs: mlp_test
5050
steps:

dl_bench/cnn.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ def __init__(self, params) -> None:
3434

3535
in_shape = (3, 224, 224)
3636
min_batches = 10
37-
DATASET_SIZE = max(10_240, batch_size * min_batches)
37+
min_seconds = 20
38+
warmup = 10
39+
DATASET_SIZE = max(10_240, batch_size * (min_batches + warmup))
3840
dataset = RandomInfDataset(DATASET_SIZE, in_shape)
3941

4042
name = params.get("name", "resnet50")
4143
net = get_cnn(name=name)
4244

4345
super().__init__(
44-
net=net, in_shape=in_shape, dataset=dataset, batch_size=batch_size
46+
net=net, in_shape=in_shape, dataset=dataset, batch_size=batch_size, min_batches=min_batches, warmup_batches=warmup, min_seconds=min_seconds
4547
)

dl_bench/mlp.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ def __init__(self, params) -> None:
8181

8282
batch_size = int(params.get("batch_size", 1024))
8383

84-
min_batches = 20
85-
DATASET_SIZE = max(102_400, batch_size * min_batches)
84+
min_batches = int(params.get("min_batches", 20))
85+
min_seconds = int(params.get("min_seconds", 20))
86+
warmup = 10
87+
DATASET_SIZE = max(102_400, batch_size * (min_batches + warmup))
8688
dataset = RandomInfDataset(DATASET_SIZE, in_shape)
8789

8890
name = params.get("name", "size5")
@@ -91,6 +93,11 @@ def __init__(self, params) -> None:
9193
min_seconds = int(params.get("min_seconds", 10))
9294

9395
super().__init__(
94-
net=net, in_shape=in_shape, dataset=dataset, batch_size=batch_size,\
95-
min_batches=min_batches, min_seconds=min_seconds, warmup_batches=10
96+
net=net,
97+
in_shape=in_shape,
98+
dataset=dataset,
99+
batch_size=batch_size,
100+
min_batches=min_batches,
101+
min_seconds=min_seconds,
102+
warmup_batches=warmup,
96103
)

0 commit comments

Comments
 (0)