shibatch / sleef

SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
https://sleef.org
Boost Software License 1.0
661 stars 131 forks source link

Bazel support in Sleef #463

Open mjj48 opened 1 year ago

mjj48 commented 1 year ago

Hi there!

I am interested in sleef because I am interested in pytorch :)

I am needing to cross compile pytorch to arm. I was able to do so from a private fork of pytorch, however, would love to upstream as much of that as possible. Part of the issue though, was a very custom solution to cross compiling sleef for ARM within Bazel.

I am curious if the sleef community has interest in natively supporting bazel as a build system? context: https://docs.google.com/document/d/1U4cUcfC_IYePL3LRfaqih21gB8I9L2Te_VUvaX9Yia4/edit#

JackTemaki commented 1 year ago

Unfortunately this repository is no longer really actively maintained, see https://github.com/shibatch/sleef/issues/442

I have the same issue with building PyTorch for RiscV, and would be interested in getting fixes merged. Still it might be worth to mention you can always build PyTorch with USE_SYSTEM_SLEEF=ON, which I did to use a custom compiled SLEEF.

I wonder if there are people interested in taking this over, as this is a really crucial project which does implement fundamental stuff, not even to mention being a relevant part of PyTorch.