1
1
from unittest import TestCase , main
2
- import os
3
-
4
2
import configure_ci
5
3
6
4
@@ -39,7 +37,11 @@ def test_valid_workflow_dispatch_matrix_generator(self):
39
37
False , True , False , {}, build_families , False
40
38
)
41
39
linux_target_to_compare = [
42
- {"target" : "gfx94X-dcgpu" , "test-runs-on" : "linux-mi300-1gpu-ossci-rocm" }
40
+ {
41
+ "test-runs-on" : "linux-mi300-1gpu-ossci-rocm" ,
42
+ "family" : "gfx94X-dcgpu" ,
43
+ "pytorch-target" : "gfx942" ,
44
+ }
43
45
]
44
46
self .assertEqual (linux_target_output , linux_target_to_compare )
45
47
self .assertEqual (windows_target_output , [])
@@ -64,10 +66,14 @@ def test_valid_pull_request_matrix_generator(self):
64
66
)
65
67
66
68
linux_target_to_compare = [
67
- {"test-runs-on" : "" , "target" : "gfx110X-dgpu" },
68
- {"test-runs-on" : "linux-mi300-1gpu-ossci-rocm" , "target" : "gfx94X-dcgpu" },
69
+ {"test-runs-on" : "" , "family" : "gfx110X-dgpu" , "pytorch-target" : "gfx1100" },
70
+ {
71
+ "test-runs-on" : "linux-mi300-1gpu-ossci-rocm" ,
72
+ "family" : "gfx94X-dcgpu" ,
73
+ "pytorch-target" : "gfx942" ,
74
+ },
69
75
]
70
- windows_target_to_compare = [{"test-runs-on" : "" , "target " : "gfx110X-dgpu" }]
76
+ windows_target_to_compare = [{"test-runs-on" : "" , "family " : "gfx110X-dgpu" }]
71
77
self .assertEqual (linux_target_output , linux_target_to_compare )
72
78
self .assertEqual (windows_target_output , windows_target_to_compare )
73
79
@@ -79,10 +85,14 @@ def test_duplicate_pull_request_matrix_generator(self):
79
85
True , False , False , base_args , {}, False
80
86
)
81
87
linux_target_to_compare = [
82
- {"test-runs-on" : "" , "target" : "gfx110X-dgpu" },
83
- {"test-runs-on" : "linux-mi300-1gpu-ossci-rocm" , "target" : "gfx94X-dcgpu" },
88
+ {"test-runs-on" : "" , "family" : "gfx110X-dgpu" , "pytorch-target" : "gfx1100" },
89
+ {
90
+ "test-runs-on" : "linux-mi300-1gpu-ossci-rocm" ,
91
+ "family" : "gfx94X-dcgpu" ,
92
+ "pytorch-target" : "gfx942" ,
93
+ },
84
94
]
85
- windows_target_to_compare = [{"test-runs-on" : "" , "target " : "gfx110X-dgpu" }]
95
+ windows_target_to_compare = [{"test-runs-on" : "" , "family " : "gfx110X-dgpu" }]
86
96
self .assertEqual (linux_target_output , linux_target_to_compare )
87
97
self .assertEqual (windows_target_output , windows_target_to_compare )
88
98
@@ -94,10 +104,14 @@ def test_invalid_pull_request_matrix_generator(self):
94
104
True , False , False , base_args , {}, False
95
105
)
96
106
linux_target_to_compare = [
97
- {"test-runs-on" : "" , "target" : "gfx110X-dgpu" },
98
- {"test-runs-on" : "linux-mi300-1gpu-ossci-rocm" , "target" : "gfx94X-dcgpu" },
107
+ {"test-runs-on" : "" , "family" : "gfx110X-dgpu" , "pytorch-target" : "gfx1100" },
108
+ {
109
+ "test-runs-on" : "linux-mi300-1gpu-ossci-rocm" ,
110
+ "family" : "gfx94X-dcgpu" ,
111
+ "pytorch-target" : "gfx942" ,
112
+ },
99
113
]
100
- windows_target_to_compare = [{"test-runs-on" : "" , "target " : "gfx110X-dgpu" }]
114
+ windows_target_to_compare = [{"test-runs-on" : "" , "family " : "gfx110X-dgpu" }]
101
115
self .assertEqual (linux_target_output , linux_target_to_compare )
102
116
self .assertEqual (windows_target_output , windows_target_to_compare )
103
117
@@ -107,10 +121,14 @@ def test_empty_pull_request_matrix_generator(self):
107
121
True , False , False , base_args , {}, False
108
122
)
109
123
linux_target_to_compare = [
110
- {"test-runs-on" : "" , "target" : "gfx110X-dgpu" },
111
- {"test-runs-on" : "linux-mi300-1gpu-ossci-rocm" , "target" : "gfx94X-dcgpu" },
124
+ {"test-runs-on" : "" , "family" : "gfx110X-dgpu" , "pytorch-target" : "gfx1100" },
125
+ {
126
+ "test-runs-on" : "linux-mi300-1gpu-ossci-rocm" ,
127
+ "family" : "gfx94X-dcgpu" ,
128
+ "pytorch-target" : "gfx942" ,
129
+ },
112
130
]
113
- windows_target_to_compare = [{"test-runs-on" : "" , "target " : "gfx110X-dgpu" }]
131
+ windows_target_to_compare = [{"test-runs-on" : "" , "family " : "gfx110X-dgpu" }]
114
132
self .assertEqual (linux_target_output , linux_target_to_compare )
115
133
self .assertEqual (windows_target_output , windows_target_to_compare )
116
134
@@ -120,10 +138,10 @@ def test_main_branch_push_matrix_generator(self):
120
138
False , False , True , base_args , {}, False
121
139
)
122
140
linux_target_to_compare = [
123
- {"test-runs-on" : "linux-mi300-1gpu-ossci-rocm" , "target " : "gfx94X-dcgpu" },
124
- {"test-runs-on" : "" , "target " : "gfx110X-dgpu" },
141
+ {"test-runs-on" : "linux-mi300-1gpu-ossci-rocm" , "family " : "gfx94X-dcgpu" },
142
+ {"test-runs-on" : "" , "family " : "gfx110X-dgpu" },
125
143
]
126
- windows_target_to_compare = [{"test-runs-on" : "" , "target " : "gfx110X-dgpu" }]
144
+ windows_target_to_compare = [{"test-runs-on" : "" , "family " : "gfx110X-dgpu" }]
127
145
self .assertEqual (linux_target_output , linux_target_to_compare )
128
146
self .assertEqual (windows_target_output , windows_target_to_compare )
129
147
0 commit comments