Skip to content

Commit 6357c3e

Browse files
authored
ci: circumvent AVX512 issue on GHA runners (#87)
1 parent be8b307 commit 6357c3e

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ info --platforms=@platforms//host
66

77
common --platforms=@mojo_host_platform
88
common --host_platform=@mojo_host_platform
9+
10+
# HACK: Github Action runners using AMD EPYC CPUs have AVX512 disabled.
11+
# Mojo will happily generate those instructions, but then they crash at runtime.
12+
# Totally disable AVX512 to circumvent the issue.
13+
common:ci --//:mojo_copt=--target-features=-avx512f,-avx512bw,-avx512cd,-avx512dq,-avx512vl,-avx512ifma,-avx512vbmi,-avx512vbmi2,-avx512vnni,-avx512bitalg,-avx512vpopcntdq,-avx512fp16,-avx512bf16

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ jobs:
3232
run: |
3333
bazel version
3434
bazel info
35-
- run: bazel test //...
35+
- name: CPU Info
36+
run: |
37+
lscpu || true
38+
- run: bazel test --config=ci //...

0 commit comments

Comments
 (0)