[Feature Request] Make OpenRNG available as a Shared Library and binary package for easy installation
Hello,
Request for a shared library (libopenrng.so):
The current build steps as mentioned in this repo, allows OpenRNG to build only as a static library. For integrating with other Frameworks like PyTorch, it will be useful if it could be available as a shared library (libopenrng.so file). - A PR has been raised on PyTorch OSS Enabling Aten Distribution kernels for AARCH64, which links ARMPL, to leverage OpenRNG VSL calls for exponential and bernoulli distribution ops. If OpenRNG shared lib is available, we would be only able to link OpenRNG separately, and avoid conflicts.As a workaround, I was able to build libopenrng.so by adding this line in /openrng/CMakeLists.txt :
-
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries" FORCE)
, which could be added as a configurable option.
Request for binary package:
Also, current installation steps allow OpenRNG to be built from source only, it would be great if it could be available as a binary package directly available for installation. For eg, like armpl is available as a debian package (https://learn.arm.com/install-guides/armpl/), an openrng debian package could be made available. Currently to leverage OpenRNG, one has to link entire ARMPL which would be a heavier binary. An OpenRNG shared lib would be a better pathway ahead, and enhance acceptance in the community.
Edited by Congregate Migrate