On Fri, 15 Mar 2024 13:58:05 GMT, Hamlin Li <m...@openjdk.org> wrote:

>> Hi,
>> Can you help to review this patch?
>> Thanks
>> 
>> This is a continuation of work based on [1] by @XiaohongGong, most work was 
>> done in that pr. In this new pr, just rebased the code in [1], then added 
>> some minor changes (renaming of calling method, add libsleef as extra lib in 
>> CI cross-build on aarch64 in github workflow); I aslo tested the combination 
>> of following scenarios:
>> * at build time
>>   * with/without sleef
>>   * with/without sve support 
>> * at runtime
>>   * with/without sleef
>>   * with/without sve support 
>> 
>> [1] https://github.com/openjdk/jdk/pull/16234
>> 
>> ## Regression Test
>> * test/jdk/jdk/incubator/vector/
>> * test/hotspot/jtreg/compiler/vectorapi/
>> 
>> ## Performance Test
>> Previously, @XiaohongGong has shared the data: 
>> https://github.com/openjdk/jdk/pull/16234#issuecomment-1767727028
>
> Hamlin Li has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fix jni includes

OK, no worry.

Let's discuss more thoroughly before we start implement it.

Let me ask first question: are we still want sleef into jdk?
* If the answer is `no` or similar, what's the better alternative solution?
* If the answer is `yes`, let's continue the discussion about how to integrate 
sleef into jdk via this pr (maybe not imeplement it in this pr).

I try to categorize the possible solutions below.
1. depends on external sleef at build time & run time, like this pr. Cons: 
requires sleef installed in system at build & run time.
2. depends on external sleef at run time only, like @theRealAph suggested. 
Cons: requires sleef installed in system at runtime
3. depends on external sleef at build time only, like @magicus suggested. Cons: 
requires sleef installed in system at build time
4. not depends on external sleef at all. 
4.1. integrate source into jdk, use the genrated source from sleef cmake, check 
https://github.com/openjdk/jdk/pull/18294#issuecomment-2018839778, Cons: 
license legal process
4.2. is there other ways?
6. any other possible solutions not covered above?

Seems to me, the best way is to integrate sleef souce into jdk. Does it need 
license work? If positive, how and who will work on it?

Would you mind to share your comments, and make necessary additions? 
@theRealAph @magicus
Thanks!

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18294#issuecomment-2020986186

Reply via email to