uschindler commented on PR #12632:
URL: https://github.com/apache/lucene/pull/12632#issuecomment-1772673981

   > to have any decent performance, we really need information on the CPU in 
question and its vector capabilities. And the idea you can write "one loop" 
that "runs anywhere" is an obvious pipe dream on the part of openjdk... we have 
to deal with special-case BS like this for every CPU. my advice on openjdk 
side: give up on the pipe dream and give us some cpuinfo or at least tell us 
what vector operations are supported.
   
   I think we should really open an issue at JDK. We discussed about this 
before. In my opinion, the system should have an API to request for each 
operator, if it is supported in current configuration (CPU, species size and 
Hotspot abilities). In addition a shortcut to figure out if C2 is enabled at 
all, but if C2 is disabled, each of the above specific queries for operator and 
species combinations should return "no-no".
   
   Everything else makes vector API a huge trap. It is a specialist API so 
please add detailed information to allow specialist use!
   
   > I'm almost to the point of writing /proc/cpuinfo parser.
   
   Doesn't work on Windows. 😱


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to