change outputs to intent(inout) to prevent allocations #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: push | |
| env: | |
| BUILD_TYPE: Debug | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Fortran | |
| uses: awvwgk/setup-fortran@main | |
| id: setup-fortran | |
| with: | |
| compiler: gcc | |
| version: 11 | |
| - name: Setup Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: 3.9 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install valgrind | |
| python -m pip install --upgrade pip | |
| python -m pip install jax jaxlib fypp | |
| - name: configure cmake | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
| - name: build | |
| run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
| - name: test | |
| working-directory: ${{github.workspace}}/build | |
| run: | | |
| ./test/test_differentia | |
| valgrind --error-exitcode=1 --leak-check=full ./test/test_differentia | |
| python ../test/test_jax.py | |
| ./test/test_sparse | |
| valgrind --error-exitcode=1 --leak-check=full ./test/test_sparse |