Skip to content

Commit

Permalink
chore: remove noavx2 mode (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 authored Jun 5, 2024
1 parent 381aa24 commit c3fa2d3
Show file tree
Hide file tree
Showing 162 changed files with 72,657 additions and 114,764 deletions.
4 changes: 2 additions & 2 deletions internal/cpu/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
)

var (
HasAVX = cpuid.CPU.Has(cpuid.AVX)
HasAVX2 = cpuid.CPU.Has(cpuid.AVX2)
HasSSE = cpuid.CPU.Has(cpuid.SSE)
)
Expand All @@ -33,7 +32,8 @@ func init() {
switch v := os.Getenv("SONIC_MODE"); v {
case "" : break
case "auto" : break
case "noavx" : HasAVX = false; fallthrough
case "noavx" : HasAVX2 = false
// will also disable avx, act as `noavx`, we remain it to make sure forward compatibility
case "noavx2" : HasAVX2 = false
default : panic(fmt.Sprintf("invalid mode: '%s', should be one of 'auto', 'noavx', 'noavx2'", v))
}
Expand Down
36 changes: 0 additions & 36 deletions internal/native/avx/f32toa.go

This file was deleted.

44 changes: 0 additions & 44 deletions internal/native/avx/f32toa_subr.go

This file was deleted.

964 changes: 0 additions & 964 deletions internal/native/avx/f32toa_text_amd64.go

This file was deleted.

37 changes: 0 additions & 37 deletions internal/native/avx/f64toa.go

This file was deleted.

46 changes: 0 additions & 46 deletions internal/native/avx/f64toa_subr.go

This file was deleted.

Loading

0 comments on commit c3fa2d3

Please sign in to comment.