adpy is a library useful for defining operations of a numerical simulation tool in the form of a computational graph. The graph can be executed on CPUs and GPUs and the adjoint graph can be derived using automatic differentiation provided by the library.
adpy requires the following packages
gcc
ccache
python: numpy, pytest
For Ubuntu, the following commands should be sufficient to install the above packages.
sudo apt install ccache gcc
sudo apt install python-pip
pip install numpy
Build and install adpy using the following commands
python setup.py build
python setup.py install --prefix=/path/you/want
To run unit tests for adpy
cd tests
./run_tests.sh
cd ..
An example of how to use the adpy library can be found in the tmp.py file in the tests folder.
Chaitanya Talnikar and Professor Qiqi Wang