Skip to content

Commit

Permalink
Merge pull request #5 from rainerzufalldererste/cstiller/blocks
Browse files Browse the repository at this point in the history
Adding variable block size variants
  • Loading branch information
rainerzufalldererste authored Jul 8, 2023
2 parents be70389 + c2f5d19 commit 7f13b66
Show file tree
Hide file tree
Showing 28 changed files with 6,503 additions and 345 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,68 @@ jobs:
with:
name: build-clang64
path: builds/bin/hsrans

test:
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/download-artifact@v3
with:
name: build-clang64

- name: Mark as Executable
working-directory: ${{env.GITHUB_WORKSPACE}}
run: chmod +x hsrans

- name: Download Samples
working-directory: ${{env.GITHUB_WORKSPACE}}
run: git clone https://github.com/rainerzufalldererste/rle_samples.git

- name: Test sample0
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test

- name: Test sample0 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd avx2

- name: Test sample0 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd sse4.2

- name: Test sample0 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd none

- name: Test sample1 AVX512BW
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test

- name: Test sample1 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd avx2

- name: Test sample1 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd sse4.2

- name: Test sample1 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd none

- name: Test sample2 AVX512BW
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test

- name: Test sample2 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd avx2

- name: Test sample2 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd sse4.2

- name: Test sample2 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd none
65 changes: 65 additions & 0 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,68 @@ jobs:
with:
name: build-gcc64
path: builds/bin/hsrans

# test:
# runs-on: ubuntu-latest
# needs: build
#
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: build-gcc64
#
# - name: Mark as Executable
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: chmod +x hsrans
#
# - name: Download Samples
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: git clone https://github.com/rainerzufalldererste/rle_samples.git
#
# #- name: Test sample0
# # working-directory: ${{env.GITHUB_WORKSPACE}}
# # run: ./hsrans rle_samples/sample0.bin --test
#
# - name: Test sample0 AVX2
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample0.bin --test --max-simd avx2
#
# - name: Test sample0 SSE4.2
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample0.bin --test --max-simd sse4.2
#
# - name: Test sample0 No-SIMD
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample0.bin --test --max-simd none
#
# #- name: Test sample1
# # working-directory: ${{env.GITHUB_WORKSPACE}}
# # run: ./hsrans rle_samples/sample1.bin --test
#
# - name: Test sample1 AVX2
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample1.bin --test --max-simd avx2
#
# - name: Test sample1 SSE4.2
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample1.bin --test --max-simd sse4.2
#
# - name: Test sample1 No-SIMD
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample1.bin --test --max-simd none
#
# #- name: Test sample2
# # working-directory: ${{env.GITHUB_WORKSPACE}}
# # run: ./hsrans rle_samples/sample2.bin --test
#
# - name: Test sample2 AVX2
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample2.bin --test --max-simd avx2
#
# - name: Test sample2 SSE4.2
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample2.bin --test --max-simd sse4.2
#
# - name: Test sample2 No-SIMD
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: ./hsrans rle_samples/sample2.bin --test --max-simd none
60 changes: 60 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,63 @@ jobs:
name: build-win64
path: builds/bin/hsrans.exe

test:
runs-on: windows-latest
needs: build

steps:
- uses: actions/download-artifact@v3
with:
name: build-win64

- name: Download Samples
working-directory: ${{env.GITHUB_WORKSPACE}}
run: git clone https://github.com/rainerzufalldererste/rle_samples.git

- name: Test sample0
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test

- name: Test sample0 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd avx2

- name: Test sample0 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd sse4.2

- name: Test sample0 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd none

- name: Test sample1
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test

- name: Test sample1 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd avx2

- name: Test sample1 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd sse4.2

- name: Test sample1 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd none

- name: Test sample2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test

- name: Test sample2 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd avx2

- name: Test sample2 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd sse4.2

- name: Test sample2 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd none
Loading

0 comments on commit 7f13b66

Please sign in to comment.