Skip to content
Snippets Groups Projects
Select Git revision
  • 3d44a19e67699cc9f0b0d73426d7e76de985a742
  • master default protected
  • v2.0-dev protected
  • zikeliml/Task-96-dotExporterForAST
  • zikeliml/124-rework-tutorials
  • fma
  • fhennig/v2.0-deprecations
  • holzer-master-patch-46757
  • 66-absolute-access-is-probably-not-copied-correctly-after-_eval_subs
  • gpu_bufferfield_fix
  • hyteg
  • vectorization_sqrt_fix
  • target_dh_refactoring
  • const_fix
  • improved_comm
  • gpu_liveness_opts
  • release/1.3.7 protected
  • release/1.3.6 protected
  • release/2.0.dev0 protected
  • release/1.3.5 protected
  • release/1.3.4 protected
  • release/1.3.3 protected
  • release/1.3.2 protected
  • release/1.3.1 protected
  • release/1.3 protected
  • release/1.2 protected
  • release/1.1.1 protected
  • release/1.1 protected
  • release/1.0.1 protected
  • release/1.0 protected
  • release/0.4.4 protected
  • last/Kerncraft
  • last/OpenCL
  • last/LLVM
  • release/0.4.3 protected
  • release/0.4.2 protected
36 results

installation.md

Blame
  • (installation_guide)=

    Setup and Installation

    Install pystencils

    There are two ways to install the latest development version of pystencils 2.0. You can either install it directly from our git repository:

    pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev"

    Or clone the repository locally and perform an editable install:

    git clone -b v2.0-dev https://i10git.cs.fau.de/pycodegen/pystencils.git
    pip install -e pystencils

    Feature Groups

    In both cases, you can add a set of optional features to your installation by listing them in square brackets (e.g. pip install -e pystencils[feature1, feature2]). The following feature sets are available:

    • interactive (recommended): Install dependencies for using pystencils interactively from within Jupyter notebooks. Setting this flag will cause pip to install jupyter, matplotlib, and graphviz, among others, alongside pystencils.
    • alltrafos (recommended): Install dependencies to enable a wider set of code transformation. These include islpy for polyhedral loop transformations, and py-cpuinfo for detecting the current hardware in order to select optimal vector instructions.
    • use_cython: Install Cython, which is used internally by pystencils to accelerate the setup of boundary conditions.

    For GPUs

    If you have an Nvidia graphics processor and CUDA installed, you can use pystencils to directly compile and execute kernels running on your GPU. This requires a working installation of Cupy. Please refer to the cupy's installation manual for details about installing cupy.

    You can also use Cupy together with AMD ROCm for AMD graphics cards, but the setup steps are a bit more complicated - you might have to build cupy from source. The Cupy documentation covers this in their installation guide for Cupy on ROCm.

    :::{note} Since Cupy's support for ROCm is at this time still an experimental feature, just-in-time compilation of pystencils HIP kernels for the ROCm platform must also considered experimental. :::