-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves metadata and error handling
- Loading branch information
Adomas Baliuka
authored and
Adomas Baliuka
committed
May 23, 2023
1 parent
d54dcdf
commit 649899e
Showing
10 changed files
with
166 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CompatHelper | ||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
CompatHelper: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check if Julia is already available in the PATH | ||
id: julia_in_path | ||
run: which julia | ||
continue-on-error: true | ||
- name: Install Julia, but only if it is not already available in the PATH | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1' | ||
arch: ${{ runner.arch }} | ||
if: steps.julia_in_path.outcome != 'success' | ||
- name: "Add the General registry via Git" | ||
run: | | ||
import Pkg | ||
ENV["JULIA_PKG_SERVER"] = "" | ||
Pkg.Registry.add("General") | ||
shell: julia --color=yes {0} | ||
- name: "Install CompatHelper" | ||
run: | | ||
import Pkg | ||
name = "CompatHelper" | ||
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7" | ||
version = "3" | ||
Pkg.add(; name, uuid, version) | ||
shell: julia --color=yes {0} | ||
- name: "Run CompatHelper" | ||
run: | | ||
import CompatHelper | ||
CompatHelper.main() | ||
shell: julia --color=yes {0} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} | ||
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "LDPCStorage" | ||
uuid = "d46d874d-5773-4ce9-8adb-568101dc8882" | ||
authors = ["Adomas Baliuka <[email protected]>"] | ||
version = "0.3.3" | ||
version = "0.3.4" | ||
|
||
[deps] | ||
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file was automatically generated using LDPCStorage.jl (https://github.com/XQP-Munich/LDPCStorage.jl). | ||
// A sparse LDPC matrix (containing only zeros and ones) is saved in compressed sparse column (CSC) format. | ||
// Since the matrix (and LDPC code) is known at compile time, there is no need to save it separately in a file. | ||
// This significantly blows up the executable size (the memory would still have to be used when saving the matrix). | ||
|
||
#include <cstdint> | ||
#include <array> | ||
|
||
namespace AutogenLDPC { | ||
|
||
constexpr inline std::size_t M = 4; | ||
constexpr inline std::size_t N = 14; | ||
constexpr inline std::size_t num_nz = 23; | ||
constexpr inline std::array<std::uint16_t, N + 1> colptr = { | ||
0x0,0x2,0x3,0x4,0x8,0x9,0xa,0xb,0xc,0xe,0xf,0x10,0x13,0x15,0x17 | ||
}; | ||
|
||
// ------------------------------------------------------- | ||
|
||
constexpr inline std::array<std::uint16_t, num_nz> row_idx = { | ||
0x1,0x3,0x2,0x0,0x0,0x1,0x2,0x3,0x1,0x2,0x2,0x3,0x0,0x2,0x3,0x1,0x0,0x2,0x3,0x0,0x2,0x1,0x3 | ||
}; | ||
|
||
|
||
} // namespace AutogenLDPC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
14 4 | ||
4 7 | ||
2 1 1 4 1 1 1 1 2 1 1 3 2 2 | ||
5 5 7 6 | ||
2 4 | ||
3 | ||
1 | ||
1 2 3 4 | ||
2 | ||
3 | ||
3 | ||
4 | ||
1 3 | ||
4 | ||
2 | ||
1 3 4 | ||
1 3 | ||
2 4 | ||
3 4 9 12 13 | ||
1 4 5 11 14 | ||
2 4 6 7 9 12 13 | ||
1 4 8 10 12 14 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"metadata":{"julia_package_version":"0.3.4","julia_package_url":"https://github.com/XQP-Munich/LDPCStorage.jl"},"comments":"","n_rows":4,"n_columns":14,"rowval":[1,3,2,0,0,1,2,3,1,2,2,3,0,2,3,1,0,2,3,0,2,1,3],"description":"Compressed sparse column storage of a matrix. The format defines a sparse matrix using arrays 'column pointers' (json key `colptr`), 'row indices' (key `rowval`) and 'stored entries of the matrix' (key `nzval`). If the `format` is BINCSCJSON, the `nzval` array is omitted and all non-zero entries of the matrix are assumed to be '1'.If `format` is COMPRESSED_SPARSE_COLUMN, `nzval` is included.\n\nThis file stores a sparse binary matrix in compressed sparse column (CSC) format.","CSCJSON_FORMAT_VERSION":"0.3.3","colptr":[0,2,3,4,8,9,10,11,12,14,15,16,19,21,23],"format":"BINCSCJSON","n_stored_entries":23} |
This file contains 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
This file contains 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