From 20224ecc26f82d74ea0e69019a35722f18194dd9 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 25 Oct 2024 01:48:35 +0800 Subject: [PATCH] Fixed special instruction set usage on build script. --- build.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/build.py b/build.py index 9cb6bf2..84dc539 100644 --- a/build.py +++ b/build.py @@ -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': @@ -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') @@ -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') @@ -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')