Installation#

This set of instructions is intended for 64-bit Linux and MacOS computers.

  1. Make sure your system has the basics to build software.

    On Debian derivatives (Ubuntu and many more), installing build-essential should do the trick.

    Everywhere else, just making sure you have the g++ package should be enough.

  2. Installing miniforge for Python 3 on your respective system.

  3. export CONDA=/WHERE/YOU/INSTALLED/miniforge3

    If you accepted the default location, this should work:

    export CONDA=$HOME/miniforge3

  4. $CONDA/bin/conda create -n myenvname

  5. source $CONDA/bin/activate myenvname

  6. conda config --add channels conda-forge

  7. conda install git pip pocl islpy pyopencl

  8. Type the following command:

    hash -r; for i in loopy pytato arraycontext; do python -m pip install --editable "git+https://github.com/inducer/$i.git#egg=$i"; done
    

Note

In each case, you may leave out the --editable flag if you would not like a checkout of the source code.

Next time you want to use arraycontext, just run the following command:

source /WHERE/YOU/INSTALLED/miniforge3/bin/activate myenvname

You may also like to add this to a startup file (like $HOME/.bashrc) or create an alias for it.

After this, you should be able to run the tests or examples.

User-visible Changes#

Version 2021.1#

Note

This version is currently under development. You can get snapshots from arraycontext’s git repository

Licensing#

arraycontext is licensed to you under the MIT/X Consortium license:

Copyright (c) 2020-21 University of Illinois Board of Trustees

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Acknowledgments#

Work on arraycontext was supported in part by

  • the Department of Energy, National Nuclear Security Administration, under Award Number DE-NA0003963,

  • the US Navy ONR, under grant number N00014-14-1-0117, and

  • the US National Science Foundation under grant numbers DMS-1418961, CCF-1524433, DMS-1654756, SHF-1911019, and OAC-1931577.

The views and opinions expressed herein do not necessarily reflect those of the funding agencies.