Skip to content

Commit 7938a5d

Browse files
authored
Merge pull request #133 from vbedida79/patch-120923-2
tests_l2: Update readme
2 parents 84056a4 + 96aa236 commit 7938a5d

File tree

1 file changed

+74
-1
lines changed

1 file changed

+74
-1
lines changed

tests/l2/README.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# Verifying Intel Hardware Feature Provisioning
22
## Introduction
33
After provisioning Intel hardware features on RHOCP, the respective hardware resources are exposed to the RHOCP cluster. The workload containers can request these resources. The following sample workloads help verify if these resources can be used as expected. These sample workloads container images are built and packaged on-premises through [RHOCP BuildConfig](https://docs.openshift.com/container-platform/4.12/cicd/builds/understanding-buildconfigs.html) and pushed to the embedded repository through [RHOCP ImageStream](https://docs.openshift.com/container-platform/4.12/openshift_images/image-streams-manage.html).
4+
45
## Prerequisites
56
• Provisioned RHOCP 4.12 cluster. Follow steps [here](https://github.com/intel/intel-technology-enabling-for-openshift#provisioning-rhocp-cluster).
7+
68
• Provisioning Intel HW features on RHOCP. Follow steps [here](https://github.com/intel/intel-technology-enabling-for-openshift#provisioning-intel-hardware-features-on-rhocp)
9+
710
### Verify Intel® Software Guard Extensions (Intel® SGX) Provisioning
811
This [SampleEnclave](https://github.com/intel/linux-sgx/tree/master/SampleCode/SampleEnclave) application workload from the Intel SGX SDK runs an Intel SGX enclave utilizing the EPC resource from the Intel SGX provisioning.
912
* Build the container image.
1013

11-
```$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/ main/tests/l2/sgx/sgx_build.yaml```
14+
```$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/tests/l2/sgx/sgx_build.yaml```
1215

1316
* Deploy and run the workload.
1417

@@ -61,6 +64,76 @@ $ oc logs intel-dgpu-clinfo-56mh2
6164
Device OpenCL C all versions OpenCL
6265
```
6366

67+
### Verify Intel® QuickAssist Technology provisioning
68+
This workload runs [qatlib](https://github.com/intel/qatlib) sample tests. Refer to the [qatlib readme](https://github.com/intel/qatlib/blob/main/INSTALL) for more details.
69+
70+
* Build the workload container image.
71+
72+
```$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/tests/l2/qat/qatlib_build.yaml ```
73+
74+
* Deploy and execute the workload.
75+
76+
* Run with IPC_LOCK capability for pod
77+
78+
```$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/security/qatlib_rbac.yaml```
79+
80+
```$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/tests/l2/qat/qatlib_job.yaml```
81+
82+
* Check the results.
83+
```
84+
$ oc get pods
85+
intel-qat-workload-c6g9v 0/1 Completed 0 4m13s
86+
```
87+
88+
89+
* For all sample tests `./cpa_sample_code`
90+
91+
```
92+
$ oc logs intel-qat-workload-c6g9v
93+
qaeMemInit started
94+
icp_sal_userStartMultiProcess("SSL") started
95+
There are no crypto instances
96+
*** QA version information ***
97+
device ID = 0
98+
software = 23.2.0
99+
*** END QA version information ***
100+
Inst 0, Affin: 0, Dev: 0, Accel 0, EE 0, BDF ED:00:01
101+
Inst 1, Affin: 1, Dev: 0, Accel 0, EE 0, BDF ED:00:01
102+
Inst 2, Affin: 2, Dev: 0, Accel 0, EE 0, BDF ED:00:01
103+
Inst 3, Affin: 3, Dev: 0, Accel 0, EE 0, BDF ED:00:01
104+
---------------------------------------
105+
API Traditional
106+
Session State STATELESS
107+
Algorithm DEFLATE
108+
Huffman Type STATIC
109+
Mode ASYNCHRONOUS
110+
CNV Enabled YES
111+
Direction COMPRESS
112+
Packet Size 8192
113+
Compression Level 1
114+
Corpus CALGARY_CORPUS
115+
Corpus Filename calgary
116+
CNV Recovery Enabled YES
117+
Number of threads 4
118+
Total Responses 158400
119+
Total Retries 2242671
120+
Clock Cycles Start 126150916653843
121+
Clock Cycles End 126151409143747
122+
Total Cycles 492489904
123+
CPU Frequency(kHz) 1700160
124+
Throughput(Mbps) 35920
125+
Compression Ratio 0.4897
126+
---------------------------------------
127+
128+
Inst 0, Affin: 0, Dev: 0, Accel 0, EE 0, BDF ED:00:01
129+
Inst 1, Affin: 1, Dev: 0, Accel 0, EE 0, BDF ED:00:01
130+
Inst 2, Affin: 2, Dev: 0, Accel 0, EE 0, BDF ED:00:01
131+
Inst 3, Affin: 3, Dev: 0, Accel 0, EE 0, BDF ED:00:01
132+
---------------------------------------
133+
```
134+
135+
64136
## See Also
65137
For Intel SGX demos on vanilla Kubernetes, refer to [link](https://github.com/intel/intel-device-plugins-for-kubernetes/tree/main/demo/sgx-sdk-demo)
138+
66139
For GPU demos on vanilla Kubernetes, refer to [link](https://github.com/intel/intel-device-plugins-for-kubernetes/tree/main/demo/intel-opencl-icd)

0 commit comments

Comments
 (0)