Skip to content

Commit

Permalink
implemented (#24), fixed (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Jul 15, 2021
1 parent df5e8f4 commit be2b4dd
Show file tree
Hide file tree
Showing 30 changed files with 2,954 additions and 1,156 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/pull_request_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ jobs:
mv eigen include
- name: Build Bench
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/benchmark.cpp -o bench.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/benchmark.cpp -o bench.out
- name: Run Bench
run: |
cat /proc/cpuinfo
./bench.out
- name: Build BenchMv
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/benchmark_mv.cpp -o benchmv.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/benchmark_mv.cpp -o benchmv.out
- name: Run BenchMv
run: |
./benchmv.out
- name: Build Accuracy
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/accuracy.cpp -o accuracy.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/accuracy.cpp -o accuracy.out
- name: Run Accuracy
run: |
./accuracy.out
Expand All @@ -61,22 +61,22 @@ jobs:
mv eigen-${{ matrix.eigenversion }} include
- name: Build Bench
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/benchmark.cpp -o bench.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/benchmark.cpp -o bench.out
- name: Run Bench
continue-on-error: true
run: |
sysctl -a | grep machdep.cpu
./bench.out
- name: Build BenchMv
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/benchmark_mv.cpp -o benchmv.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/benchmark_mv.cpp -o benchmv.out
- name: Run BenchMv
continue-on-error: true
run: |
./benchmv.out
- name: Build Accuracy
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/accuracy.cpp -o accuracy.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/accuracy.cpp -o accuracy.out
- name: Run Accuracy
run: |
./accuracy.out
Expand All @@ -99,20 +99,20 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
- name: Build Bench
run: |
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:bench.exe .\test\benchmark.cpp
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:bench.exe .\benchmark\benchmark.cpp
- name: Run Bench
run: |
bash -c "cat /proc/cpuinfo"
.\bench.exe
- name: Build BenchMv
run: |
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:benchmv.exe .\test\benchmark_mv.cpp
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:benchmv.exe .\benchmark\benchmark_mv.cpp
- name: Run BenchMv
run: |
.\benchmv.exe
- name: Build Accuracy
run: |
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:accuracy.exe .\test\accuracy.cpp
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:accuracy.exe .\benchmark\accuracy.cpp
- name: Run Accuracy
run: |
.\accuracy.exe
Expand All @@ -134,4 +134,4 @@ jobs:
- name: Test Reference
run: |
pip install scipy
python test/comp_scipy.py
python benchmark/comp_scipy.py
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ jobs:
- name: Test Reference
run: |
pip install scipy
python test/comp_scipy.py
python benchmark/comp_scipy.py
- name: Build Bench
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/benchmark.cpp -o bench.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/benchmark.cpp -o bench.out
- name: Run Bench
run: |
cat /proc/cpuinfo
g++ -v
./bench.out
- name: Build BenchMv
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/benchmark_mv.cpp -o benchmv.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/benchmark_mv.cpp -o benchmv.out
- name: Run BenchMv
run: |
./benchmv.out
Expand Down Expand Up @@ -72,10 +72,10 @@ jobs:
- name: Test Reference
run: |
pip install scipy
python test/comp_scipy.py
python benchmark/comp_scipy.py
- name: Build Bench
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/benchmark.cpp -o bench.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/benchmark.cpp -o bench.out
- name: Run Bench
continue-on-error: true
run: |
Expand All @@ -84,7 +84,7 @@ jobs:
./bench.out
- name: Build BenchMv
run: |
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes test/benchmark_mv.cpp -o benchmv.out
g++ -std=c++11 -g -O3 -${{ matrix.arch }} -DNDEBUG -I./ -I./include -Wno-ignored-attributes benchmark/benchmark_mv.cpp -o benchmv.out
- name: Run BenchMv
continue-on-error: true
run: |
Expand Down Expand Up @@ -113,18 +113,18 @@ jobs:
- name: Test Reference
run: |
pip install scipy
python test/comp_scipy.py
python benchmark/comp_scipy.py
- uses: ilammy/msvc-dev-cmd@v1
- name: Build Bench
run: |
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:bench.exe .\test\benchmark.cpp
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:bench.exe .\benchmark\benchmark.cpp
- name: Run Bench
run: |
bash -c "cat /proc/cpuinfo"
.\bench.exe
- name: Build BenchMv
run: |
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:benchmv.exe .\test\benchmark_mv.cpp
cl.exe /O2 ${{ matrix.arch }} /I.\ /I.\include /D "NDEBUG" /Fe:benchmv.exe .\benchmark\benchmark_mv.cpp
- name: Run BenchMv
run: |
.\benchmv.exe
Expand All @@ -146,4 +146,4 @@ jobs:
- name: Test Reference
run: |
pip install scipy
python test/comp_scipy.py
python benchmark/comp_scipy.py
Loading

0 comments on commit be2b4dd

Please sign in to comment.