Skip to content

Commit

Permalink
Fixed special instruction set usage on build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Oct 24, 2024
1 parent f37c9af commit 20224ec
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
'-Wunused', '-Wunused-function', '-Wunused-label',
'-Wunused-parameter', '-Wunused-value', '-Wunused-variable',
'-Wvariadic-macros', '-Wvolatile-register-var', '-Wwrite-strings',
'-pipe', '-Ofast', '-s', '-std=c++17', '-fopenmp',
'-pipe', '-Ofast', '-s', '-std=c++17', '-fopenmp', '-mmmx',
'-msse', '-msse2', '-msse3', '-msse4', '-msse4.1', '-msse4.2',
'-mavx', '-mavx2', '-mfpmath=sse', '-march=native',
'-funroll-loops', '-ffast-math'
'-mavx', '-mavx2', '-mfma', '-mfpmath=sse',
'-march=native', '-funroll-loops', '-ffast-math'
]

if PLATFORM != 'Windows':
Expand All @@ -91,6 +91,7 @@
exe_build_args.remove('-Wvolatile-register-var')
exe_build_args.remove('-Weffc++')
exe_build_args.remove('-Ofast')
exe_build_args.remove('-mmmx')
exe_build_args.remove('-msse')
exe_build_args.remove('-msse2')
exe_build_args.remove('-msse3')
Expand All @@ -99,6 +100,7 @@
exe_build_args.remove('-msse4.2')
exe_build_args.remove('-mavx')
exe_build_args.remove('-mavx2')
exe_build_args.remove('-mfma')
exe_build_args.remove('-mfpmath=sse')
exe_build_args.remove('-s')

Expand Down Expand Up @@ -133,12 +135,11 @@
cuda_build_args.append('/std:c++17')

lib_build_args = lib_build_args + [
'-pipe', '-Ofast', '-s',
'-std=c++17', '-fopenmp',
'-msse', '-msse2', '-msse3',
'-pipe', '-Ofast', '-s', '-std=c++17',
'-fopenmp', '-msse', '-msse2', '-msse3',
'-msse4', '-msse4.1', '-msse4.2',
'-mavx', '-mavx2', '-mfpmath=sse',
'-march=native'
'-mavx', '-mavx2', '-mmmx', '-mfma',
'-mfpmath=sse', '-march=native'
]

cuda_build_args.append('-Iinclude')
Expand Down

0 comments on commit 20224ec

Please sign in to comment.