Bitorch Engine
Readme will be extended soon. This package contains layer to provide fast(er) layer implementations for BITorch.
Installation
Currently, the supported installation method is using pip:
- Without any special cuda requirements (to hide the build output remove
-v):
pip install -e . -v
- With higher CUDA versions you may need to install a torch pre-release and/or add an extra index URL:
pip install --upgrade --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu113
For example, for Cuda 11.6.124 torch==1.12.0.dev20220324+cu113 should work.
Cuda Device Selection
To select a certain CUDA device, set the environment variable BIE_DEVICE, e.g.:
export BIE_DEVICE=1 # use 2nd cuda device
Development
If building fails, adapt the options in cpp_extension.py/ cuda_extension.py.
While developing, a specific cpp/cuda extension can be (re-)build, by using the environment variable BIE_BUILD_ONLY,
like so:
BIE_BUILD_ONLY="bitorch_engine/layers/qconv/binary/cpp" pip install -e . -v
It needs to a relative path to one extension directory.
To build for a different CUDA Arch, use the environment variable BIE_CUDA_ARCH (e.g. use 'sm_75', 'sm_80', 'sm_86'):
BIE_CUDA_ARCH="sm_86" pip install -e . -v
MacOS
You should install OpenMP (brew install libomp) with homebrew and make sure to add the corresponding environment variables:
export LIBRARY_PATH=$LIBRARY_PATH:"$(brew --prefix)/lib"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(brew --prefix)/lib"
export CPATH=$CPATH:"$(brew --prefix)/include"
# during libomp installation it should something like this:
export LDFLAGS="-L$(brew --prefix)/opt/libomp/lib"
export CPPFLAGS="-I$(brew --prefix)/opt/libomp/include"
Metadata
Release files for bitorch-engine 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bitorch_engine-0.1.0.tar.gz | 37.2 kB | Without provenance | Details |
Release files / bitorch_engine-0.1.0.tar.gz
| Download URL | bitorch_engine-0.1.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8b39acdc6d958035be0b88456d4812a3c1960e29710e1fd475ee8067894256f
|
|
BLAKE2b-256 checksum How to use checksums |
52b417059b827c8dd05143a9ea652e9f5911581f7365a603ed5363b2deab2127
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for bitorch-engine 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.