Skip to content

Commit

Permalink
Enable AVX256 on AMD CPU (#1360)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Rasley <jerasley@microsoft.com>
  • Loading branch information
fumihwh and jeffra authored Nov 23, 2021
1 parent 1bc13fe commit a637cc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions op_builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ def simd_width(self):
return '-D__AVX512__'
elif 'avx2' in result:
return '-D__AVX256__'
elif 'authenticamd' in result:
if 'avx2' in result:
return '-D__AVX256__'
return '-D__SCALAR__'

def python_requirements(self):
Expand Down

0 comments on commit a637cc2

Please sign in to comment.