Skip to content

Commit

Permalink
Measure and plot ber vs SNR
Browse files Browse the repository at this point in the history
  • Loading branch information
williamyang98 committed Jan 29, 2024
1 parent 2ed5ca8 commit f9f8f6d
Show file tree
Hide file tree
Showing 17 changed files with 2,299 additions and 543 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/arm-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,23 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Install packages
shell: bash
run: |
cd ${{github.workspace}}/examples
./toolchains/arm_install_packages.sh
working-directory: ./examples
run: sudo apt-get update && ./toolchains/arm_install_packages.sh

- name: Configure CMake
shell: bash
run: |
cd ${{github.workspace}}/examples
./toolchains/arm_build.sh
working-directory: ./examples
run: ./toolchains/arm_build.sh

- name: Build
shell: bash
run: |
cd ${{github.workspace}}/examples
ninja -C build-arm
working-directory: ./examples
run: ninja -C build-arm

- name: Run test
shell: bash
run: |
cd ${{github.workspace}}/examples
./toolchains/arm_run.sh ./build-arm/run_tests
working-directory: ./examples
run: ./toolchains/arm_run.sh ./build-arm/run_tests
18 changes: 11 additions & 7 deletions .github/workflows/x86-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Install packages
run: sudo apt-get install ninja-build

shell: bash
run: |
sudo apt-get update
sudo apt-get install ninja-build --yes
- name: Configure CMake
working-directory: ./examples
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++
run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++

- name: Build
working-directory: ./examples
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: ninja -C ./build

- name: Run test
run: ${{github.workspace}}/build/run_tests
working-directory: ./examples
run: ./build/run_tests
2 changes: 1 addition & 1 deletion .github/workflows/x86-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
build:
runs-on: windows-latest
runs-on: windows-2022

steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 6 additions & 1 deletion examples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
build/
build-*/
build_*/
build_*/
data_snr/
venv/
.venv/
.env/
env/
288 changes: 0 additions & 288 deletions examples/BENCHMARKS.md

This file was deleted.

3 changes: 2 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ endfunction()
create_example_target(run_tests)
create_example_target(run_benchmark)
create_example_target(run_simple)
create_example_target(run_punctured_decoder)
create_example_target(run_punctured_decoder)
create_example_target(run_snr_ber)
Loading

0 comments on commit f9f8f6d

Please sign in to comment.