This commit is contained in:
Zengtudor 2024-09-19 10:09:48 +08:00
parent 73e835199a
commit 0588827bbf
1 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@ if is_plat("windows")then
-- 注意这里是启用AVX512指令集矢量化加速只有新2010年后的CPU支持但是可以大大加快批量指令加速可以试试将下面的--删除
-- 但是似乎这个程序目前任然是IO密集型性能差不多
-- add_cxxflags("/arch:AVX512")
elseif is_plat("linux") or is_plat("mingw") or is_plat("clang")then
-- 启用AVX512指令集矢量化加速可能会导致无法在除了编译本程序的电脑上运行出现兼容问题
-- add_cxxflags("-march=native")
end
target("dna")