Skip to content

Commit be3d1f7

Browse files
committed
add tpp files and legal related files
1 parent e41316e commit be3d1f7

File tree

4 files changed

+4947
-0
lines changed

4 files changed

+4947
-0
lines changed

Intel-tensorflow-build-container.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Steps to generate a container with Intel® Optimization for TensorFlow
2+
3+
This guide will help you generate a container with Intel's r2.3 branch.
4+
5+
## Steps:
6+
7+
1. Clone intel-tensorflow r2.4.0 branch:
8+
9+
```
10+
$ git clone https://github.com/Intel-tensorflow/tensorflow.git --branch=r2.4.0 --single-branch
11+
$ cd tensorflow
12+
$ git checkout v2.4.0
13+
# Run "git log" and check for the right git hash
14+
```
15+
16+
2. Go to the directory that has Intel mkl docker files:
17+
18+
```
19+
$ cd tensorflow/tools/ci_build/linux/mkl/
20+
```
21+
22+
3. Run build-dev-container.sh by passing the following env parameters:
23+
24+
For AVX containers:
25+
26+
```
27+
$ env ROOT_CONTAINER=tensorflow/tensorflow \
28+
ROOT_CONTAINER_TAG=devel \
29+
TF_DOCKER_BUILD_DEVEL_BRANCH=v2.4.0 \
30+
TF_REPO=https://github.com/Intel-tensorflow/tensorflow \
31+
TF_DOCKER_BUILD_VERSION=2.4.0 \
32+
BUILD_AVX_CONTAINERS=yes \
33+
BUILD_TF_V2_CONTAINERS=yes \
34+
BAZEL_VERSION=3.1.0 \
35+
ENABLE_SECURE_BUILD=yes \
36+
ENABLE_HOROVOD=yes \
37+
./build-dev-container.sh > ./container_build.log
38+
```
39+
40+
For AVX512 containers:
41+
42+
```
43+
$ env ROOT_CONTAINER=tensorflow/tensorflow \
44+
ROOT_CONTAINER_TAG=devel \
45+
TF_DOCKER_BUILD_DEVEL_BRANCH=v2.4.0 \
46+
TF_REPO=https://github.com/Intel-tensorflow/tensorflow \
47+
TF_DOCKER_BUILD_VERSION=2.4.0 \
48+
BUILD_SKX_CONTAINERS=yes \
49+
BUILD_TF_V2_CONTAINERS=yes \
50+
BAZEL_VERSION=3.1.0 \
51+
ENABLE_SECURE_BUILD=yes \
52+
ENABLE_HOROVOD=yes \
53+
./build-dev-container.sh > ./container_build.log
54+
```
55+
56+
4. Open a second terminal session at the same location and run `tail -f container_build.log` to monitor container build progress
57+
or wait until the build finishes and then open the log file <container_build.log> ...
58+
59+
```
60+
INFO: Build completed successfully, 18811 total actions.
61+
```
62+
63+
Below output indicates that the container has intel-optimized tensorflow:
64+
65+
```
66+
PASS: MKL enabled test in <intermediate container name>
67+
```
68+
69+
5. Check if the image was built successfully and tag it:
70+
71+
AVX container:
72+
73+
```
74+
$ docker images
75+
intel-mkl/tensorflow:2.4.0-devel-mkl
76+
$ docker tag intel-mkl/tensorflow:2.4.0-devel-mkl intel/intel-optimized-tensorflow:2.4.0-devel-mkl
77+
```
78+
79+
AVX512 container:
80+
81+
```
82+
$ docker images
83+
intel-mkl/tensorflow:2.4.0-avx512-devel-mkl
84+
85+
$ docker tag intel-mkl/tensorflow:2.4.0-avx512-devel-mkl intel/intel-optimized-tensorflow:2.4.0-avx512-devel-mkl
86+
```
87+
88+
89+

LEGAL-NOTICE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Intel® Optimized Tensorflow Container
2+
3+
4+
LEGAL NOTICE: Your use of this software and any required dependent software (the “Software Package”) is subject to the terms
5+
and conditions of the software license agreements for the Software Package, which may also include notices,
6+
disclaimers, or license terms for third party or open source software included in or with the Software Package,
7+
and your use indicates your acceptance of all such terms. Please refer to the “third-party-programs.txt” or other
8+
similarly-named text file included with the Software Package for additional details.
9+
10+
Please refer to the https://github.com/Intel-tensorflow/tensorflow/blob/v2.4.0/third-party-programs.txt and
11+
https://github.com/Intel-tensorflow/tensorflow/blob/v2.4.0/third-party-programs-for-docker-containers.txt for additional details.

0 commit comments

Comments
 (0)