[PATCH v2] x86: set spincount 1 for x86 hybrid platform

2023-10-11 Thread Jun Zhang
/include/spincount.h @@ -0,0 +1,33 @@ +/* Copyright (C) 2023-2023 Free Software Foundation, Inc. + Contributed by Jun Zhang . + + This file is part of the GNU Offloading and Multi Processing Library + (libgomp). + + Libgomp is free software; you can redistribute it and/or modify it + under

[PATCH] x86: set spincount 1 for x86 hybrid platform [PR109812]

2023-10-09 Thread Jun Zhang
From: "Zhang, Jun" By test, we find in hybrid platform spincount 1 is better. Use '-march=native -Ofast -funroll-loops -flto', results as follows: spec2017 speed RPL ADL 657.xz_s 0.00% 0.50% 603.bwaves_s 10.90% 26.20% 607.cactuBSSN_s 5.50% 72.50% 619.lbm_s2.40%