PyKeOps/en
The KeOps library lets you compute reductions of large arrays whose entries are given by a mathematical formula or a neural network. It combines efficient C++ routines with an automatic differentiation engine and can be used with Python (NumPy), PyTorch, MATLAB and R.
Available versions¶
PyKeOps is available on our clusters as prebuilt Python packages (wheels). You can list available versions with avail_wheels.
Installing PyKeOps in a Python virtual environment¶
-
Load runtime dependencies.
-
Create and activate a Python virtual environment.
-
Install a specific version of PyKeOps and its Python dependencies.
where(pykeops_env) [name@server ~]$ pip install --no-index --upgrade pip (pykeops_env) [name@server ~]$ pip install --no-index pykeops==X.Y.ZX.Y.Zis the exact desired version, for instance2.2.3. You can omit to specify the version in order to install the latest one available from the wheelhouse. -
Validate it.
-
Freeze the environment and requirements set.
-
Remove the local virtual environment.
Running KeOps¶
You can run PyKeOps on CPU or GPU.
- Write your job submission script.
-
Before submitting your job, it is important to test that your submission script will start without errors. You can do a quick test in an interactive job.
-
Submit your job to the scheduler. ```bash sbatch submit-keops.sh