@@ -4,25 +4,25 @@ For additional information on supported models, how to install, run and optimize
4
4
OpenVINO, please see
5
5
https://github.com/gramineproject/examples/blob/master/openvino/README.md .
6
6
7
- Currently tested distro is Ubuntu 20 .04.
7
+ Currently tested distro is Ubuntu 24 .04.
8
8
9
9
## Building graminized Docker image
10
10
11
11
1 . Build Docker image:
12
12
``` bash
13
- docker build --tag ubuntu20 .04-openvino --file ubuntu20 .04-openvino.dockerfile .
13
+ docker build --tag ubuntu24 .04-openvino --file ubuntu24 .04-openvino.dockerfile .
14
14
```
15
15
16
16
2 . Graminize the Docker image using ` gsc build ` :
17
17
``` bash
18
18
cd ../..
19
- ./gsc build --insecure-args ubuntu20 .04-openvino \
20
- Examples/openvino/ubuntu20 .04-openvino.manifest
19
+ ./gsc build --insecure-args ubuntu24 .04-openvino \
20
+ Examples/openvino/ubuntu24 .04-openvino.manifest
21
21
```
22
22
23
23
3 . Sign the graminized Docker image using ` gsc sign-image ` :
24
24
``` bash
25
- ./gsc sign-image ubuntu20 .04-openvino enclave-key.pem
25
+ ./gsc sign-image ubuntu24 .04-openvino enclave-key.pem
26
26
```
27
27
28
28
## Running the benchmark in GSC
@@ -31,44 +31,43 @@ cd ../..
31
31
32
32
- For benchmarking:
33
33
``` bash
34
- $ docker run --cpuset-cpus=" 0-35,72-107" --cpuset-mems=0 \
34
+ docker run --cpuset-cpus=" 0-35,72-107" --cpuset-mems=0 \
35
35
--device /dev/sgx_enclave \
36
- gsc-ubuntu20 .04-openvino -i < image files> \
37
- -m model/< public | intel> /< model_dir> /< INT8 | FP16 | FP32> /< model_xml_file> \
38
- -d CPU -b 1 -t 20 -nstreams 72 -nthreads 72 -nireq 72
36
+ gsc-ubuntu24 .04-openvino -i < image files> \
37
+ -m / model/< public | intel> /< model_dir> /< INT8 | FP16 | FP32> /< model_xml_file> \
38
+ -d CPU -b 1 -t 20 -nstreams 72 -nthreads 72 -nireq 72 -hint none
39
39
```
40
40
41
41
- For a quick test:
42
42
``` bash
43
- $ docker run --rm --device /dev/sgx_enclave gsc-ubuntu20 .04-openvino \
44
- -m model/public/resnet-50-tf/FP16/resnet-50-tf.xml \
45
- -d CPU -b 1 -t 20 -nstreams 2 -nthreads 2 -nireq 2
43
+ docker run --rm --device /dev/sgx_enclave gsc-ubuntu24 .04-openvino \
44
+ -m / model/public/resnet-50-tf/FP16/resnet-50-tf.xml \
45
+ -d CPU -b 1 -t 20 -nstreams 2 -nthreads 2 -nireq 2 -hint none
46
46
```
47
47
48
48
### Latency runs
49
49
50
50
- For benchmarking:
51
51
``` bash
52
- $ docker run --cpuset-cpus=" 0-35,72-107" --cpuset-mems=" 0" \
52
+ docker run --cpuset-cpus=" 0-35,72-107" --cpuset-mems=" 0" \
53
53
--device /dev/sgx_enclave \
54
- gsc-ubuntu20 .04-openvino -i < image files> \
55
- -m model/< public | intel> /< model_dir> /< INT8 | FP16 | FP32> /< model_xml_file> \
56
- -d CPU -b 1 -t 20 -api sync
54
+ gsc-ubuntu24 .04-openvino -i < image files> \
55
+ -m / model/< public | intel> /< model_dir> /< INT8 | FP16 | FP32> /< model_xml_file> \
56
+ -d CPU -b 1 -t 20 -api sync -hint none
57
57
```
58
58
59
59
- For a quick test:
60
60
``` bash
61
- $ docker run --rm --device /dev/sgx_enclave gsc-ubuntu20 .04-openvino \
62
- -m model/public/resnet-50-tf/FP16/resnet-50-tf.xml \
63
- -d CPU -b 1 -t 20 -api sync
61
+ docker run --rm --device /dev/sgx_enclave gsc-ubuntu24 .04-openvino \
62
+ -m / model/public/resnet-50-tf/FP16/resnet-50-tf.xml \
63
+ -d CPU -b 1 -t 20 -api sync -hint none
64
64
```
65
65
66
66
## Running the benchmark natively
67
67
68
- To run the benchmark in a native Docker container (outside Gramine), run the
69
- above commands with the following modifications:
68
+ To run the benchmark in a native Docker container (outside Gramine), run the above commands with the following modifications:
70
69
- remove ` --device=/dev/sgx_enclave ` ,
71
- - replace ` gsc-ubuntu20 .04-openvino ` with ` ubuntu20 .04-openvino` .
70
+ - replace ` gsc-ubuntu24 .04-openvino ` with ` ubuntu24 .04-openvino` .
72
71
73
72
## Notes
74
73
0 commit comments