Skip to content

Commit ad73b39

Browse files
authored
Add dependency and modify instructions for env check tool (#2746)
Signed-off-by: Wang, Kai Lawrence <[email protected]>
1 parent fae9dae commit ad73b39

File tree

4 files changed

+52
-6
lines changed

4 files changed

+52
-6
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,18 @@ pip install --upgrade intel-extension-for-tensorflow[xpu]
7878

7979
Environment check instructions for XPU:
8080

81+
* Option1:
8182
```bash
83+
pip install wget
8284
export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
83-
bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh
85+
python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
86+
```
87+
88+
* Option2:
89+
```bash
90+
pip install wget
91+
wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
92+
python env_check.py
8493
```
8594

8695
Refer to [XPU installation](docs/install/install_for_xpu.md) for details.
@@ -104,9 +113,18 @@ pip install --upgrade intel-extension-for-tensorflow-weekly[xpu] -f https://deve
104113

105114
Environment check instructions for GPU weekly:
106115

116+
* Option1:
107117
```bash
118+
pip install wget
108119
export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
109-
bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh
120+
python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
121+
```
122+
123+
* Option2:
124+
```bash
125+
pip install wget
126+
wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
127+
python env_check.py
110128
```
111129

112130
#### Install for CPU weekly

docs/install/experimental/install_for_arc_gpu.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,18 @@ To install an XPU version in virtual environment, which depends on Intel GPU dri
192192
```
193193

194194
Check the environment for XPU:
195+
* Option1:
195196
```bash
197+
(tf)$ pip install wget
196198
(tf)$ export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
197-
(tf)$ bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh
199+
(tf)$ python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
200+
```
201+
202+
* Option2:
203+
```bash
204+
(tf)$ pip install wget
205+
(tf)$ wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
206+
(tf)$ python env_check.py
198207
```
199208

200209
### 4. Verify the Installation

docs/install/experimental/install_for_gpu_conda.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,20 @@ source /path/to/intel/oneapi/mkl/latest/env/vars.sh
4949
```
5050

5151
Check the environment for GPU:
52+
* Option1:
5253
```bash
53-
export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
54-
bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh
54+
(tf)$ pip install wget
55+
(tf)$ export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
56+
(tf)$ python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
5557
```
58+
59+
* Option2:
60+
```bash
61+
(tf)$ pip install wget
62+
(tf)$ wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
63+
(tf)$ python env_check.py
64+
```
65+
5666
Verify install:
5767
```
5868
python3 -c "import intel_extension_for_tensorflow as itex; print(itex.version.GIT_VERSION)"

docs/install/install_for_xpu.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,18 @@ You can follow below the instruction to check environment for XPU.
136136
(tf)$ python -c "import intel_extension_for_tensorflow as itex; print(itex.tools.python.env_check.check())"
137137
```
138138
If you have issue to load itex, You can follow below the instruction to check environment for XPU.
139+
* Option1:
139140
```bash
141+
(tf)$ pip install wget
140142
(tf)$ export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
141-
(tf)$ python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
143+
(tf)$ python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
144+
```
145+
146+
* Option2:
147+
```bash
148+
(tf)$ pip install wget
149+
(tf)$ wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
150+
(tf)$ python env_check.py
142151
```
143152

144153
##### Verify the Installation

0 commit comments

Comments
 (0)