From 94a08d594b05c577aab888721986daa7f9a1bd5e Mon Sep 17 00:00:00 2001 From: Alex Trotta Date: Tue, 19 May 2026 20:15:58 -0400 Subject: [PATCH 1/2] ci: circumvent AVX512 issue on GHA runners --- .bazelrc | 5 +++++ .github/workflows/ci.yaml | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index e0087b2..7cd02b9 100644 --- a/.bazelrc +++ b/.bazelrc @@ -6,3 +6,8 @@ info --platforms=@platforms//host common --platforms=@mojo_host_platform common --host_platform=@mojo_host_platform + +# HACK: Github Action runners using AMD EPYC 9V74 CPUs have AVX512 disabled. +# Mojo will happily generate those instructions, but then they crash at runtime. +# Totally disable AVX512 to circumvent the issue. +common:ci --//:mojo_copt=--target-features=-avx512f,-avx512bw,-avx512cd,-avx512dq,-avx512vl,-avx512ifma,-avx512vbmi,-avx512vbmi2,-avx512vnni,-avx512bitalg,-avx512vpopcntdq,-avx512fp16,-avx512bf16 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1815eba..3cf696e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,4 +32,7 @@ jobs: run: | bazel version bazel info - - run: bazel test //... + - name: CPU Info + run: | + lscpu + - run: bazel test --config=ci //... From 01fc5fc5b86e56c860e60b8db82d564ceb1187ee Mon Sep 17 00:00:00 2001 From: Alex Trotta Date: Tue, 19 May 2026 20:22:30 -0400 Subject: [PATCH 2/2] fix --- .bazelrc | 2 +- .github/workflows/ci.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bazelrc b/.bazelrc index 7cd02b9..f951763 100644 --- a/.bazelrc +++ b/.bazelrc @@ -7,7 +7,7 @@ info --platforms=@platforms//host common --platforms=@mojo_host_platform common --host_platform=@mojo_host_platform -# HACK: Github Action runners using AMD EPYC 9V74 CPUs have AVX512 disabled. +# HACK: Github Action runners using AMD EPYC CPUs have AVX512 disabled. # Mojo will happily generate those instructions, but then they crash at runtime. # Totally disable AVX512 to circumvent the issue. common:ci --//:mojo_copt=--target-features=-avx512f,-avx512bw,-avx512cd,-avx512dq,-avx512vl,-avx512ifma,-avx512vbmi,-avx512vbmi2,-avx512vnni,-avx512bitalg,-avx512vpopcntdq,-avx512fp16,-avx512bf16 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3cf696e..e00dbcd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,5 +34,5 @@ jobs: bazel info - name: CPU Info run: | - lscpu + lscpu || true - run: bazel test --config=ci //...