File tree 4 files changed +17
-250
lines changed
4 files changed +17
-250
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 93
93
CXX : ${{ matrix.cxx }}
94
94
CC : ${{ matrix.cc }}
95
95
run : |
96
+ if [[ "${{ matrix.needs_prefix }}" == "true" ]]; then
97
+ # For non-default packages like llvm@15, get the install prefix
98
+ COMPILER_PREFIX=$(brew --prefix ${{ matrix.package }})
99
+ export CC="${COMPILER_PREFIX}/bin/${{ matrix.cc_name }}"
100
+ export CXX="${COMPILER_PREFIX}/bin/${{ matrix.cxx_name }}"
101
+ else
102
+ # For versioned GCC installs, the name is usually directly available
103
+ export CC="${{ matrix.cc_name }}"
104
+ export CXX="${{ matrix.cxx_name }}"
105
+ fi
106
+
96
107
cd bindings/python
97
108
python -m pip install .
98
109
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 17
17
import archspec .cpu as cpu
18
18
import os
19
19
20
+
20
21
class MicroarchTester (unittest .TestCase ):
21
22
def test_microarch (self ):
22
23
supported_microarchs = svs .microarch .supported
23
- # Will be set in dispatcher pipeline
24
- archspec_host_name = os .environ .get ("SDE_FLAG" )
25
- if not archspec_host_name :
26
- archspec_host_name = cpu .host ().name
24
+ # Get emulated microarch from SDE_FLAG or use the host CPU
25
+ host_microarch = os .environ .get ("SDE_FLAG" , cpu .host ().name )
27
26
mapping = {
28
27
"nhm" : "nehalem" ,
29
28
"hsw" : "haswell" ,
@@ -33,7 +32,7 @@ def test_microarch(self):
33
32
"icelake" : "icelake_client" ,
34
33
"spr" : "sapphirerapids" ,
35
34
}
36
- archspec_host_name = mapping .get (archspec_host_name , archspec_host_name )
35
+ host_microarch = mapping .get (host_microarch , host_microarch )
37
36
38
- if archspec_host_name in supported_microarchs :
39
- self .assertTrue (archspec_host_name == svs .microarch .current )
37
+ if host_microarch in supported_microarchs :
38
+ self .assertTrue (host_microarch == svs .microarch .current )
You can’t perform that action at this time.
0 commit comments