Skip to content

Commit

Permalink
Add dependency and modify instructions for env check tool (#2746)
Browse files Browse the repository at this point in the history
Signed-off-by: Wang, Kai Lawrence <kai.lawrence.wang@intel.com>
  • Loading branch information
wangkl2 authored Aug 28, 2024
1 parent fae9dae commit ad73b39
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 6 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,18 @@ pip install --upgrade intel-extension-for-tensorflow[xpu]

Environment check instructions for XPU:

* Option1:
```bash
pip install wget
export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh
python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
```

* Option2:
```bash
pip install wget
wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
python env_check.py
```

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

Environment check instructions for GPU weekly:

* Option1:
```bash
pip install wget
export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh
python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
```

* Option2:
```bash
pip install wget
wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
python env_check.py
```

#### Install for CPU weekly
Expand Down
11 changes: 10 additions & 1 deletion docs/install/experimental/install_for_arc_gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,18 @@ To install an XPU version in virtual environment, which depends on Intel GPU dri
```

Check the environment for XPU:
* Option1:
```bash
(tf)$ pip install wget
(tf)$ export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
(tf)$ bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh
(tf)$ python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
```

* Option2:
```bash
(tf)$ pip install wget
(tf)$ wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
(tf)$ python env_check.py
```

### 4. Verify the Installation
Expand Down
14 changes: 12 additions & 2 deletions docs/install/experimental/install_for_gpu_conda.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,20 @@ source /path/to/intel/oneapi/mkl/latest/env/vars.sh
```

Check the environment for GPU:
* Option1:
```bash
export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh
(tf)$ pip install wget
(tf)$ export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
(tf)$ python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
```

* Option2:
```bash
(tf)$ pip install wget
(tf)$ wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
(tf)$ python env_check.py
```

Verify install:
```
python3 -c "import intel_extension_for_tensorflow as itex; print(itex.version.GIT_VERSION)"
Expand Down
11 changes: 10 additions & 1 deletion docs/install/install_for_xpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,18 @@ You can follow below the instruction to check environment for XPU.
(tf)$ python -c "import intel_extension_for_tensorflow as itex; print(itex.tools.python.env_check.check())"
```
If you have issue to load itex, You can follow below the instruction to check environment for XPU.
* Option1:
```bash
(tf)$ pip install wget
(tf)$ export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
(tf)$ python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
(tf)$ python ${path_to_site_packages}/intel_extension_for_tensorflow/tools/python/env_check.py
```

* Option2:
```bash
(tf)$ pip install wget
(tf)$ wget https://raw.githubusercontent.com/intel/intel-extension-for-tensorflow/main/tools/python/env_check.py
(tf)$ python env_check.py
```

##### Verify the Installation
Expand Down

0 comments on commit ad73b39

Please sign in to comment.