Skip to content

Commit

Permalink
Merge pull request #3065 from afbjorklund/intel-avx512
Browse files Browse the repository at this point in the history
Disable AVX-512 support for macOS Intel host
  • Loading branch information
AkihiroSuda authored Jan 21, 2025
2 parents 274d3d9 + 858ec2c commit 26aed70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/limayaml/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func defaultCPUType() CPUType {
if arch == X8664 && runtime.GOOS == "darwin" {
switch cpuType[arch] {
case "host", "max":
// disable AVX-512, since it requires trapping instruction faults in guest
// Enterprise Linux requires either v2 (SSE4) or v3 (AVX2), but not yet v4.
cpuType[arch] += ",-avx512vl"

// Disable pdpe1gb on Intel Mac
// https://github.com/lima-vm/lima/issues/1485
// https://stackoverflow.com/a/72863744/5167443
Expand Down

0 comments on commit 26aed70

Please sign in to comment.