mirror of https://github.com/apache/lucene.git
Log FMA usage
This commit is contained in:
parent
a2016d1d50
commit
cfef47f243
|
@ -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) {
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue