Tools around Bluebild@EPFL
Project description
bluebild-tools
Tools around bluebild@EPFL
Installation
$ pip install bluebild-tools --upgrade
Usage
Check whether CuPy can be used
from bluebild_tools import cupy as bbt_cupy
use_cupy = bbt_cupy.is_cupy_usable()
You can set the MUST_CUPY
environment variable to influence the behavior of the function:
- With
MUST_CUPY
unset or set to 0, theuse_cupy
boolean variable will be set toFalse
if CuPy can't be used and set toTrue
if CuPy can be used. - With
MUST_CUPY
set to 1, the process will be killed if CuPy is not usable. - With
MUST_CUPY
set to 0, no attempt will be made to use CuPy (i.e.use_cupy
will be set toFalse
, always).
Note
If CuPy is found unusable, the following environment variables are automatically set to 0:
CUPY_PYFFS
CUPY_PYLOPS
That way, the pyFFS (https://github.com/imagingofthings/pyFFS) and PyLops (https://github.com/PyLops/pylops) packages can be imported with CuPy support disabled.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bluebild-tools-0.0.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for bluebild_tools-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 170c36c5455701081cc66cd9bf9ef8ca06af137fcd0100244e548adfaec1ed33 |
|
MD5 | a1acec7d40e4925e85a7d4067e1c37eb |
|
BLAKE2b-256 | c94aa6b17410598053708e9f75e72b88766098bbd4d7f4e79af56f0f09d00587 |