File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ var X86 struct {
5454 HasAVX512VBMI2 bool // Advanced vector extension 512 Vector Byte Manipulation Instructions 2
5555 HasAVX512BITALG bool // Advanced vector extension 512 Bit Algorithms
5656 HasAVX512BF16 bool // Advanced vector extension 512 BFloat16 Instructions
57- HasAMX bool // Advanced Matrix Extension
5857 HasAMXTile bool // Advanced Matrix Extension Tile instructions
5958 HasAMXInt8 bool // Advanced Matrix Extension Int8 instructions
6059 HasAMXBF16 bool // Advanced Matrix Extension BFloat16 instructions
Original file line number Diff line number Diff line change @@ -143,12 +143,9 @@ func archInit() {
143143 X86 .HasAVX512BF16 = isSet (5 , eax71 )
144144 }
145145
146- X86 .HasAMX = isSet (24 , edx7 )
147- if X86 .HasAMX {
148- X86 .HasAMXTile = true
149- X86 .HasAMXInt8 = isSet (25 , edx7 )
150- X86 .HasAMXBF16 = isSet (22 , edx7 )
151- }
146+ X86 .HasAMXTile = isSet (24 , edx7 )
147+ X86 .HasAMXInt8 = isSet (25 , edx7 )
148+ X86 .HasAMXBF16 = isSet (22 , edx7 )
152149}
153150
154151func isSet (bitpos uint , value uint32 ) bool {
You can’t perform that action at this time.
0 commit comments