Skip to content

Commit

Permalink
run c examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ofmla authored Feb 26, 2024
1 parent 278523d commit 54092ee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test_bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ jobs:
cmake -S . -B build -DBUILD_CLI_UTILITIES=OFF -DBUILD_UNIT_TESTS=OFF -DCMAKE_VERBOSE_MAKEFILE=ON
cmake --build build
sudo cmake --install build
- name: Run C examples
run: |
cd examples/C_API
ln -s ../../test_data .
gcc -g -O3 2d.c -o 2d.out -lSPERR
gcc -g -O3 3d.c -o 3d.out -lSPERR
./2d.out ./test_data/lena512.float 512 512 1 2.5
cp output.stream 2d-output.stream
cp output.data 2d-output.data
./3d.out ./test_data/density_128x128x256.d64 128 128 256 1 2.6 -d
- name: Clone own repository
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 54092ee

Please sign in to comment.