Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
401 commits
Select commit Hold shift + click to select a range
fc3b703
Fix google test/benchmark pthread missiong issue (#66)
justalittlenoob Mar 24, 2022
95e392e
Merge branch 'v1.0-rc' into development
Mar 24, 2022
c306a78
Change constant that defines number of active instances.
fdiasmor Mar 28, 2022
501d30e
Increase buffer to 128.
fdiasmor Mar 28, 2022
6d37729
Enable getBnModExpRequest with no conditional variables.
fdiasmor Mar 28, 2022
5b9c0f2
Device configuraiton: 1 logical instance per QAT endpoint for dual so…
fdiasmor Mar 28, 2022
7f57361
Device configuraiton: 2 logical instances per QAT endpoint for dual s…
fdiasmor Mar 28, 2022
39b07f4
Device configuraiton: 8 logical instances for single QAT endpoint.
fdiasmor Mar 28, 2022
166b339
Remove old device configuration.
fdiasmor Mar 28, 2022
703794d
Merge pull request #10 from intel-sandbox/fdiasmor/multiple_instances
fdiasmor Mar 28, 2022
97bd7ae
Skmono/test nonavx512 perf (#69)
Mar 28, 2022
63dd399
Increase HE QAT buffer to 256 (facilitates support higher batch sizes).
fdiasmor Mar 29, 2022
14dad79
Reset sample batch size to reflect total number of pke slices on a du…
fdiasmor Mar 29, 2022
e352da9
Add debug traces to track multiple instances activity.
fdiasmor Mar 29, 2022
3558197
Fix to the lost wake-up problem with multiple instances.
fdiasmor Mar 29, 2022
2a4b145
Clang-format source files.
fdiasmor Mar 29, 2022
2964391
Merge pull request #11 from intel-sandbox/fdiasmor/multiple_instances
fdiasmor Mar 30, 2022
baa7647
Fixed uint32 and BigNumber confusion in unittest - CtMultiplyPt and C…
Mar 31, 2022
a769717
Update README.md with more complete description and instructions.
fdiasmor Apr 1, 2022
d0c5a39
Update README.md with more installation instructions.
fdiasmor Apr 1, 2022
9f8e288
QAT enablement and integration (#74)
fdiasmor Apr 6, 2022
a0ecd9b
QAT Modular Exponentiation Integration (#73)
fdiasmor Apr 6, 2022
0325961
Revert "QAT Modular Exponentiation Integration (#73)" (#76)
Apr 6, 2022
81cdff7
Add support to admit 1024 simultaneous requests in batch mode.
fdiasmor Apr 7, 2022
ed96cbc
Incomplete draft.
fdiasmor Apr 9, 2022
595da30
Add type to represent outstanding buffers.
fdiasmor Apr 19, 2022
ead16e2
Initialize outstanding buffers.
fdiasmor Apr 19, 2022
8280947
Complete multi-threading support with distributed outstanding buffers.
fdiasmor Apr 19, 2022
720fc79
Code format changes.
fdiasmor Apr 19, 2022
d1e9ba3
improve encrypt decrypt (#75)
justalittlenoob Apr 25, 2022
83c7f34
Fix OpenMP bug and performance issues
justalittlenoob Apr 27, 2022
e39be90
[Bug Fix]: crash for small batch sizes and multiple threads.
fdiasmor Apr 27, 2022
0d450f9
update qat branch with new CipherText PlainText implementation (#84)
justalittlenoob May 2, 2022
2291923
Custom batch size for heQatBnModExp (#87)
justalittlenoob May 2, 2022
70a1c7f
Revert "Custom batch size for heQatBnModExp (#87)" (#88)
May 2, 2022
3164c6a
Add address handler in base_text
May 4, 2022
98e121b
implemented rotate to CipherText and PlainText
May 4, 2022
3e59414
Added TODO for heQatBnModExp works
May 5, 2022
d77a019
Add multi-threading testing sample.
fdiasmor May 5, 2022
6723d24
set DJN function added to development
May 6, 2022
1c4d041
Fix dJN bug
May 6, 2022
5d4c508
Added m_enableDJN getter
May 6, 2022
23bec82
Added getters for hs and randbits for DJN scheme
May 6, 2022
de0134a
Add operators/functions to PlainText&BaseText (#94)
justalittlenoob May 9, 2022
c13e0ec
Fixed rotate negative size_t bug
May 10, 2022
738b4ee
Remove seed from pub key getRandom function (#98)
justalittlenoob May 19, 2022
369b81f
Custom batch size support for QAT mod exp (#100)
fdiasmor May 23, 2022
223f430
specify omp thread num (#97)
justalittlenoob May 23, 2022
71a8203
Update README.md
fdiasmor Jun 1, 2022
8466306
test avx512ifma with larger input size (#101)
justalittlenoob Jun 2, 2022
34b9c02
Updated version number to v1.1.3
Jun 2, 2022
f01774e
Update README.md
fdiasmor Jun 3, 2022
874e53a
Update README.md with Troubleshooting section
fdiasmor Jun 4, 2022
d7c55c9
Fix IPCL_USE_OMP missing issue (#103)
justalittlenoob Jun 6, 2022
ea69530
Fix OMP issue in decryptRAW (#104)
justalittlenoob Jun 7, 2022
72dd1f2
getCipherText function (#108)
Jun 20, 2022
9db0b6e
Add support for -DIPCL_THREAD_COUNT (#107)
justalittlenoob Jun 22, 2022
e9a2c31
1. Add error log when key size is not >=16 or not divisible by 4. (#113)
justalittlenoob Jun 24, 2022
896d61e
qat integration update (#115)
justalittlenoob Jun 27, 2022
154bdc6
Updated version - QAT 2.0.0
Jun 27, 2022
05ed8a5
Static Lib Build (#20)
fdiasmor Jul 12, 2022
aee4b38
Enable QAT static library building (#120)
Jul 13, 2022
a074de7
Minor updates
Jul 13, 2022
811f9fd
benchmark with same inputs (#119)
justalittlenoob Jul 14, 2022
8e97cb3
Handling throttling at runtime.
Jul 15, 2022
791ea9e
WIP: multiple instances handled from a single thread.
fdiasmor Jul 16, 2022
f4a0f8f
Round-robin instance scheduling.
fdiasmor Jul 20, 2022
5cfec24
Some code refactoring.
fdiasmor Jul 25, 2022
5891a28
Minor fix.
fdiasmor Aug 3, 2022
3f92e85
Minor tweak for robust performance.
fdiasmor Aug 5, 2022
99bdbfd
Update multithreaded sample (functional).
fdiasmor Aug 5, 2022
a0d6597
Remove unused variable.
fdiasmor Aug 5, 2022
9086e4d
Minor fix in callback.
fdiasmor Aug 5, 2022
1d0ba4a
Remove unused variables.
fdiasmor Aug 5, 2022
02349c7
Enable warnings for unused variables and functions.
fdiasmor Aug 5, 2022
2db35a2
Merge pull request #21 from intel-sandbox/fdiasmor/multithreading_sup…
fdiasmor Aug 5, 2022
4b0c55f
Merge pull request #22 from intel-sandbox/fdiasmor/distributed-outsta…
fdiasmor Aug 5, 2022
c6c05db
Merge pull request #23 from intel-sandbox/13-add-multithreading-support
fdiasmor Aug 5, 2022
453fc58
Code clean up.
fdiasmor Aug 5, 2022
0808b9f
Minor fix.
fdiasmor Aug 5, 2022
8eef08d
Revert "Minor fix."
fdiasmor Aug 5, 2022
2d027ca
Merge pull request #24 from intel-sandbox/ipcl/integration
fdiasmor Aug 5, 2022
c790812
Merge pull request #25 from intel-sandbox/development
fdiasmor Aug 6, 2022
99f3ed2
Merge pull request #26 from intel-sandbox/fdiasmor/round_robin
fdiasmor Aug 6, 2022
1734ac4
Merge pull request #28 from intel-sandbox/development
fdiasmor Aug 6, 2022
276fc81
Update HE QAT Lib version.
fdiasmor Aug 6, 2022
f4fd5bd
Decouple callback functions, global variables and global constants.
fdiasmor Aug 20, 2022
a4fc087
Remove global variables from separate source file.
fdiasmor Aug 25, 2022
319a947
Apply public repo changes to internal repo (#124)
justalittlenoob Aug 25, 2022
b5fe852
Add experimental decoupled control from interfaces.
fdiasmor Aug 25, 2022
5748e67
Some comments clean-up.
fdiasmor Aug 26, 2022
09c66ca
Add documentation to callback functions.
fdiasmor Aug 26, 2022
aceb175
Partial documentation of he_qat_ctrl.c.
fdiasmor Aug 26, 2022
257e37c
Fix undefined references.
fdiasmor Sep 2, 2022
4b675b0
Isolate global constants.
fdiasmor Sep 2, 2022
142acf2
Update comments, documentation and some clean-up.
fdiasmor Sep 3, 2022
e7638aa
[WIP] Update code cleanup and refactoring.
fdiasmor Sep 8, 2022
3f65d5c
Remove outdated comments.
fdiasmor Sep 8, 2022
884042a
Remove dead code.
fdiasmor Sep 8, 2022
15a68ae
Fix interface name.
fdiasmor Sep 8, 2022
8e9d2c6
Apply public repo changes: 2 insecure rng fix (#126)
justalittlenoob Sep 8, 2022
2a499b4
Enable Doxygen documentation install.
fdiasmor Sep 20, 2022
30fe2c2
Change doc comments to fix doxygen compilation.
fdiasmor Sep 20, 2022
275a9cc
Update comments on types.
fdiasmor Sep 20, 2022
3a3731a
Remove unused header.
fdiasmor Sep 21, 2022
bde2dd9
Update API doc comments.
fdiasmor Sep 21, 2022
a0f344a
Update device config files.
fdiasmor Sep 21, 2022
bbcb920
Update strict to setup devices.
fdiasmor Sep 21, 2022
24d6819
Update sample test for HE_QAT_BIGNUMModExp().
fdiasmor Sep 21, 2022
4ff1792
Fix hexadecimal print.
fdiasmor Sep 21, 2022
f726ff9
Update time measurer.
fdiasmor Sep 21, 2022
269af74
Update example.
fdiasmor Sep 21, 2022
b98c26c
Update device setup script.
fdiasmor Sep 22, 2022
d85b88e
Add auxiliary scripts.
fdiasmor Sep 22, 2022
076d291
Remove old source code.
fdiasmor Sep 22, 2022
b633fd8
Move scripts to scripts folder.
fdiasmor Sep 22, 2022
b673beb
Test samples clean-up.
fdiasmor Sep 22, 2022
81bd62d
Add copyright header.
fdiasmor Sep 22, 2022
566fc48
Remove scripts from parent folder.
fdiasmor Sep 22, 2022
ccbe292
Environment vars.
fdiasmor Sep 22, 2022
131fed9
Fix on Debug mode.
fdiasmor Sep 22, 2022
cf425ef
Update README.md
fdiasmor Sep 22, 2022
d411a04
Update README.md
fdiasmor Sep 22, 2022
7c750ab
Source Code Refactoring (#29)
fdiasmor Sep 22, 2022
a28899c
Update README.md
fdiasmor Sep 23, 2022
a7192ae
Add 'module/heqat/' from commit 'a28899ce44e20f6ac99b28176dbd632d8db7…
fdiasmor Sep 23, 2022
74162ec
HE QAT lib repo migration.
fdiasmor Sep 24, 2022
7e7c28c
Remove heqat from external dependency.
fdiasmor Sep 24, 2022
bfdf0ab
Remove heqat module as fixed directory.
fdiasmor Sep 24, 2022
51f227c
Update README.md
fdiasmor Sep 24, 2022
a179474
Add heqat as a git submodule.
fdiasmor Sep 24, 2022
adb9a24
Update download instructions.
fdiasmor Sep 24, 2022
2b03bd7
Update downloading instructions.
fdiasmor Sep 24, 2022
72e3870
Update documentation.
fdiasmor Sep 26, 2022
2da3e07
Merge pull request #129 from intel-sandbox/heqat_submodule
fdiasmor Sep 27, 2022
a8acc9c
Apply IPCL v1.1.4 to internal development branch (#131)
Oct 6, 2022
7fef484
Remove dangling header.
fdiasmor Oct 7, 2022
5b2b2b8
Adjust optimization params.
fdiasmor Oct 7, 2022
5a1b3cd
Fix compilation error for HE_QAT_PERF=ON.
fdiasmor Oct 7, 2022
86437b6
Use main branch instead of v1.1-rc
Oct 7, 2022
9536741
Add context interface to configure device runtime.
fdiasmor Oct 12, 2022
acb71a4
Update heqat.cmake
fdiasmor Oct 12, 2022
77a206c
Remove commented line
fdiasmor Oct 12, 2022
56251ed
Expose context status interface.
fdiasmor Oct 12, 2022
8bca333
Fix compilation
fdiasmor Oct 12, 2022
d898473
Add interfaces to probe QAT context state.
fdiasmor Oct 13, 2022
715f932
Fix compilation.
fdiasmor Oct 13, 2022
d3afb25
Update heqat module.
fdiasmor Oct 13, 2022
8f27540
Test QAT context status interface.
fdiasmor Oct 13, 2022
da2e4df
Apply changes on dev branch to qat_integration (#132)
justalittlenoob Oct 14, 2022
b417e2e
Add context header to public header
Oct 14, 2022
801e491
Fail-proof context setup and teardown.
fdiasmor Oct 14, 2022
6bd6cd8
Update heqat module.
fdiasmor Oct 15, 2022
9311518
Update context.
fdiasmor Oct 15, 2022
5111cff
Update context.
fdiasmor Oct 15, 2022
da1aab4
Rename Debug Macro.
fdiasmor Oct 17, 2022
6a254b5
Refactor to HE_QAT_PRINT_DBG and PRINT.
fdiasmor Oct 17, 2022
b51163e
Add a wrapper function: modExp (#133)
justalittlenoob Oct 18, 2022
5f1f497
Refactoring include directories.
fdiasmor Oct 18, 2022
710f400
Update example.
fdiasmor Oct 18, 2022
3867d2a
Update CMakeLists.txt.
fdiasmor Oct 18, 2022
bd0f7a9
Refactoring include directories (#30)
fdiasmor Oct 18, 2022
10ac852
Update heqat module.
fdiasmor Oct 18, 2022
47a21a2
Fix compilation for static lib.
fdiasmor Oct 18, 2022
11e6862
Update heqat module.
fdiasmor Oct 18, 2022
dabc87a
Add heqat to IPCL install dir.
fdiasmor Oct 18, 2022
81c9a37
Fix header in ctrl.c (#31)
Oct 19, 2022
eba4a7b
Fix fedora build
Oct 19, 2022
a72bd3c
Fix header placement.
fdiasmor Oct 19, 2022
efb9be1
Remove dangling header.
fdiasmor Oct 19, 2022
004a3f8
Applied fedora build fix
Oct 19, 2022
251a548
Update heqat module.
fdiasmor Oct 19, 2022
7483345
Install ICP headers.
fdiasmor Oct 19, 2022
7bbb464
Refactor heqat include directories (#134)
fdiasmor Oct 21, 2022
b371755
Update CMakeLists.txt
fdiasmor Oct 25, 2022
7a3a66a
Update README.md.
fdiasmor Oct 25, 2022
77d128b
Update setup_devices.sh script.
fdiasmor Oct 25, 2022
a2be0a0
Updated install paths (#137)
Oct 26, 2022
b69f837
Remove unused variables and functions.
fdiasmor Oct 27, 2022
0d0d098
Remove unused variables and functions (#33)
fdiasmor Oct 27, 2022
f2c63fd
Remove cpa_sample_utils from repository and enable build without exte…
Oct 27, 2022
f85cb41
Revert "Remove cpa_sample_utils from repository and enable build with…
Oct 27, 2022
14c5413
Remove cpa_sample_utils dependency.
fdiasmor Oct 28, 2022
db8addc
Remove cpa_sample_utils dependency (#36)
fdiasmor Oct 28, 2022
384fd92
Make ICP headers public.
fdiasmor Oct 28, 2022
94dd804
Move icp/CMakeLists.txt to cmake/qatconfig.cmake
fdiasmor Oct 28, 2022
ffbbdcb
Move icp/CMakeLists.txt (#37)
fdiasmor Oct 28, 2022
ccfd48e
Minor addition.
fdiasmor Oct 28, 2022
899806b
Update Contributors.
fdiasmor Oct 28, 2022
e8cb5bc
Add license headers. (#38)
fdiasmor Oct 28, 2022
1efc115
Update heqat submodule.
fdiasmor Oct 28, 2022
fb00c9d
Remove ICP variables dependency.
fdiasmor Oct 28, 2022
b2083d4
Replace PRINT_ERR by HE_QAT_PRINT_ERR.
fdiasmor Oct 28, 2022
00f6832
Update module/heqat.cmake
fdiasmor Oct 28, 2022
99a9201
Minor updates (#39)
Oct 28, 2022
eb444b4
Update qat_integration with heqat updates (#141)
Oct 28, 2022
6d180a2
Cleanup deprecated compile definitions and cmake variables (#40)
Oct 28, 2022
68c5af5
Removed depracated compile-definitions (#142)
Oct 28, 2022
d94bcc3
Update submodule.
fdiasmor Oct 28, 2022
c86dedc
Update submodule
Oct 28, 2022
418008d
Removed HE_QAT_SAMPLES flag in heqat.cmake and replaced with HE_QAT_T…
Oct 28, 2022
5d1906b
Clean-up and bug fix. (#41)
fdiasmor Oct 28, 2022
74481ca
Code clang-formatting. (#42)
fdiasmor Oct 28, 2022
b18ae00
Update heqat submodule.
fdiasmor Oct 28, 2022
008f515
Remove submodule.
fdiasmor Oct 28, 2022
0859543
Add 'module/heqat/' from commit '74481ca0c628b3344804db71bfb73560f654…
fdiasmor Oct 28, 2022
6c5cb44
HEQAT Lib Module as Subdirectory (#143)
fdiasmor Oct 29, 2022
aac0eb4
Fix IPP-Crypto compile error after applying patch (#144)
Oct 29, 2022
fb379f1
Cmake rule: one cmakelists per target (#145)
Oct 30, 2022
a71ab19
Minor fixes (#146)
Oct 30, 2022
25f1a95
Build heqat as subdirectory (#147)
Oct 31, 2022
6793d82
Add support for hybrid ModExp (method#1) (#140)
justalittlenoob Oct 31, 2022
9357fad
Skmono/detect rdseed runtime (#148)
Nov 1, 2022
aa18648
Add hybrid mode (#149)
justalittlenoob Nov 4, 2022
5cb2e22
IPCL 2.0 documentation (#150)
Nov 7, 2022
c9e26ac
Type fix
Nov 7, 2022
05e43fc
modexp: Fix setHybridMode cannot set hybrid mode correctly
justalittlenoob Nov 8, 2022
de6b1b0
Enable Python shared library build
Nov 8, 2022
6229ff7
Improve IPCL Python build parameter check
Nov 8, 2022
59f8245
Add IPCL_INTERNAL_PYTHON_BUILD message when set
Nov 8, 2022
4fc14a5
Testing rpath setup for ipcl
Nov 9, 2022
0b7257e
Fix ORIGIN rpath to include HEQAT correctly
Nov 9, 2022
c8a17a3
Disable IPCL_ENABLE_QAT if dependencies are not correctly set rather …
Nov 9, 2022
0be9ece
IPCL_FOUND_QAT cases refactoring
Nov 9, 2022
bc38b24
Fix - use full QAT when OMP is disabled
Nov 9, 2022
277add2
Revert "Fix - use full QAT when OMP is disabled"
Nov 9, 2022
839cedd
Remove example files from cpplint excludes
Nov 9, 2022
7a19a92
Merge branch 'development' into qat_integration
justalittlenoob Nov 9, 2022
98883f0
* pre-commit fixes
Nov 9, 2022
bf521ec
Separated cpplint for C and C++ codes
Nov 9, 2022
5c97c59
Removed ```NOLINT``` keywords after added C filters
Nov 9, 2022
1bb0ae8
Add ```IPCL_ENABLE_QAT=ON``` option in CI/CD build command
Nov 9, 2022
c64bd33
QAT Integration for IPCL 2.0 Release (#130)
fdiasmor Nov 10, 2022
e0f3383
Pre-commit update for HEQAT C codes
Nov 10, 2022
c5992cb
Merge branch 'development' into qat_integration
Nov 16, 2022
0675e33
Merge branch 'qat_integration' of ../libraries.security.cryptography.…
Nov 16, 2022
df9d428
Remove deprecated test case file
Nov 16, 2022
84ed0af
Update CODEOWNERS
Nov 16, 2022
33b0b81
Refactoring (#30)
Nov 16, 2022
a8503cf
v2.0 fixup (#31)
justalittlenoob Nov 16, 2022
2fcde46
Refactor thread counts (#32)
Nov 18, 2022
a91c244
Removed struct initial values
Nov 18, 2022
e794a0c
Updated github ci (#34)
Nov 18, 2022
1fe2616
Detect preinstalled ippcrypto (#36)
Nov 20, 2022
10085f3
Add initialization to avoid occasional error of retrieving values (#37)
Nov 21, 2022
e8e9cd8
Replace IPCL_IPPCRYPTO_PATH with CMAKE_PREFIX_PATH (#39)
Nov 22, 2022
0573d4b
Remove debug message
Nov 22, 2022
c15487c
Hotfix: Add gcc version check for "-Wno-deprecated-copy" flag (gnu>=9…
Nov 28, 2022
c5bf45b
Refactor pub priv key with smark pointers (#38)
justalittlenoob Nov 30, 2022
8ed9858
Merge branch 'development' of github.com:intel/pailliercryptolib into…
Dec 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
173 changes: 125 additions & 48 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,25 @@ on:
branches:
- main
- development
- "[0-9]+.[0-9]+.[0-9]+"
- "ipcl_v[0-9]+.[0-9]+.[0-9]+"
push:
branches:
- main
- development
- "[0-9]+.[0-9]+.[0-9]+"
- "ipcl_v[0-9]+.[0-9]+.[0-9]+"

# Manually run this workflow on any specified branch.
workflow_dispatch:

##############
# IceLake CI #
##############
###################
# Define env vars #
###################
env:
IPCL_VER: 2.0.0
IPCL_DIR: ${GITHUB_WORKSPACE}/ipcl_install
IPCL_HINT_DIR: >
-DIPCL_HINT_DIR=${GITHUB_WORKSPACE}/ipcl_install/lib/cmake/ipcl-${IPCL_VER}

jobs:
format:
name: Format check
Expand All @@ -37,69 +43,140 @@ jobs:
run: pre-commit run --all-files

build-and-test:
name: Build, test and run kernels - shared
name: '${{ matrix.build_type }} qat=${{ matrix.enable_qat }} detect_cpu_runtime=${{ matrix.detect_cpu_runtime }} shared=${{ matrix.shared_lib }}'
needs: [format]
runs-on: [self-hosted, linux, x64, icx]
# Use environment protection (require review)
environment: intel_workflow
defaults:
run:
shell: bash
working-directory: .
strategy:
matrix:
build_type: [Release, Debug]
shared_lib: [ON, OFF]
detect_cpu_runtime: [ON, OFF]
# qat disabled for ICX - to be added with SPR runner
enable_qat: [OFF]
include:
# run minimum for debug mode
- build_type: Debug
benchmark_min_time: "--benchmark_min_time=0.001"
- build_type: Release
benchmark_min_time: ""
steps:
- uses: actions/checkout@v2
- name: Validate paths
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.16.x'
- name: Validate environment
run: |
set -x
export CC=clang-10
export CXX=clang++-10

# Validate paths
whoami
echo $HOME
echo $GITHUB_WORKSPACE
echo "Testing from branch:"
echo $GITHUB_REF
cmake --version
pwd

# Build library
- name: Build the repository
- name: Build library
run: |
cmake -S . -B build -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release
cmake --build build --target all -j
# QAT unavailable in ICX - to be added
cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type}} \
-DIPCL_DETECT_CPU_RUNTIME=${{ matrix.detect_cpu_runtime }} \
-DIPCL_ENABLE_QAT=${{ matrix.enable_qat }} \
-DCMAKE_INSTALL_PREFIX=./ipcl_install
cmake --build build -j$(nproc)
cmake --build build --target install

# Unit tests and examples
- name: Run the unit tests
run: ./build/test/unittest_ipcl

- name: Run the benchmarks
run: ./build/benchmark/bench_ipcl
- name: Run unittest
run: |
cmake --build build --target unittest

build-and-test-static:
name: Build, test and run kernels - static
needs: [format]
runs-on: [self-hosted, linux, x64, icx]
# Use environment protection (require review)
environment: intel_workflow
defaults:
run:
shell: bash
working-directory: .
steps:
- uses: actions/checkout@v2
- name: Validate paths
- name: Run benchmark
run: |
whoami
echo $HOME
echo $GITHUB_WORKSPACE
echo "Testing from branch:"
echo $GITHUB_REF
pwd
./build/benchmark/bench_ipcl \
--benchmark_out="${GITHUB_WORKFLOW}_${GITHUB_SHA}" \
--benchmark_out_format=csv ${{ matrix.benchmark_min_time }}

# Build library
- name: Build the repository
- name: Build and run examples
run: |
cmake -S . -B build -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release -DIPCL_SHARED=OFF
cmake --build build --target all -j
cd $GITHUB_WORKSPACE/example
cmake -S . -B build ${{ env.IPCL_HINT_DIR }}
cmake --build build
cmake --build build --target run_all_examples

- name: Archive benchmark results
uses: actions/upload-artifact@v2
with:
name: bench_ipcl_${{ github.sha }}.csv
path: ${{ github.workspace }}/${{ github.workflow }}_${{ github.sha }}
retention-days: 90


# name: Build, test and run kernels - shared
# needs: [format]
# runs-on: [self-hosted, linux, x64, icx]
# defaults:
# run:
# shell: bash
# working-directory: .
# steps:
# - uses: actions/checkout@v2
# - name: Validate paths
# run: |
# whoami
# echo $HOME
# echo $GITHUB_WORKSPACE
# echo "Testing from branch:"
# echo $GITHUB_REF
# pwd

# # Build library
# - name: Build the repository
# run: |
# cmake -S . -B build -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release -DIPCL_ENABLE_QAT=ON
# cmake --build build --target all -j

# # Unit tests and examples
# - name: Run the unit tests
# run: ./build/test/unittest_ipcl

# - name: Run the benchmarks
# run: ./build/benchmark/bench_ipcl

# build-and-test-static:
# name: Build, test and run kernels - static
# needs: [format]
# runs-on: [self-hosted, linux, x64, icx]
# defaults:
# run:
# shell: bash
# working-directory: .
# steps:
# - uses: actions/checkout@v2
# - name: Validate paths
# run: |
# whoami
# echo $HOME
# echo $GITHUB_WORKSPACE
# echo "Testing from branch:"
# echo $GITHUB_REF
# pwd

# # Build library
# - name: Build the repository
# run: |
# cmake -S . -B build -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release -DIPCL_ENABLE_QAT=ON -DIPCL_SHARED=OFF
# cmake --build build --target all -j

# Unit tests and examples
- name: Run the unit tests
run: ./build/test/unittest_ipcl
# # Unit tests and examples
# - name: Run the unit tests
# run: ./build/test/unittest_ipcl

- name: Run the benchmarks
run: ./build/benchmark/bench_ipcl
# - name: Run the benchmarks
# run: ./build/benchmark/bench_ipcl
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repos:
entry: cpplint
language: system
files: \.(cxx|cpp|hpp|hxx)$
exclude: ipcl/bignum.cpp|example/test.cpp
exclude: ipcl/bignum.cpp|module/heqat/heqat/misc/bignum.cpp
args:
- --recursive
- --filter=-runtime/references,-whitespace/comments,-whitespace/indent
Expand All @@ -54,7 +54,7 @@ repos:
entry: cpplint
language: system
files: \.(c|cc|h)$
exclude: ipcl/include/ipcl/bignum.h
exclude: ipcl/include/ipcl/bignum.h|module/heqat/heqat/include/heqat/misc/bignum.h
args:
- --recursive
- --filter=-runtime/references,-whitespace/comments,-whitespace/indent,-readability/casting,-runtime/int,-runtime/printf
Expand Down
Loading