Log FMA usage

This commit is contained in:
Uwe Schindler 2023-10-28 23:24:53 +02:00
parent a2016d1d50
commit cfef47f243
2 changed files with 3 additions and 2 deletions

View File

@ -107,7 +107,7 @@ final class PanamaVectorUtilSupport implements VectorUtilSupport {
}
// true if we know FMA is supported, to deliver less error
private static final boolean HAS_FAST_FMA = hasFastFMA();
static final boolean HAS_FAST_FMA = hasFastFMA();
// the way FMA should work! if available use it, otherwise fall back to mul/add
private static FloatVector fma(FloatVector a, FloatVector b, FloatVector c) {

View File

@ -60,8 +60,9 @@ final class PanamaVectorizationProvider extends VectorizationProvider {
log.info(
String.format(
Locale.ENGLISH,
"Java vector incubator API enabled; uses preferredBitSize=%d%s",
"Java vector incubator API enabled; uses preferredBitSize=%d%s%s",
PanamaVectorUtilSupport.VECTOR_BITSIZE,
PanamaVectorUtilSupport.HAS_FAST_FMA ? "; FMA enabled" : "",
PanamaVectorUtilSupport.HAS_FAST_INTEGER_VECTORS
? ""
: "; floating-point vectors only"));