feat: use env-intel.sh for intel xpu setup

This commit is contained in:
Ayo Ayco 2025-10-02 11:01:00 +02:00
parent 1098101aa4
commit c06a691129
3 changed files with 10 additions and 9 deletions

View file

@ -56,7 +56,7 @@ Create new [Python virtual environment](https://realpython.com/python-virtual-en
conda create -n tts python=3.13 conda create -n tts python=3.13
### (optional) for Intel XPU specific device usage: ### (optional) for Intel XPU specific device usage:
conda create -n tts --clone llm-pt26 conda create -n tts-intel --clone llm-pt26
``` ```
> [!Note] > [!Note]
@ -92,10 +92,10 @@ python tts.py -v jf_alpha "言い習わし"
### Intel XPU environmental variables (Optional) ### Intel XPU environmental variables (Optional)
For XPUs, we need to set some environmental variables. I have added a `env.sh` script which will activate the conda environment `tts` and set the environmental variables. For XPUs, we need to set some environmental variables. I have added a `env-intel.sh` script which will activate the conda environment `tts` and set the environmental variables.
```bash ```bash
. env.sh . env-intel.sh
``` ```
## Usage ## Usage
@ -110,7 +110,7 @@ conda activate tts
If using Intel XPUs, set the env variables If using Intel XPUs, set the env variables
```bash ```bash
. env.sh . env-intel.sh
``` ```
Running the program without arguments will use the demo text `tongue-twister.txt` with the default voice. Running the program without arguments will use the demo text `tongue-twister.txt` with the default voice.

5
env-intel.sh Normal file
View file

@ -0,0 +1,5 @@
conda activate tts
unset OCL_ICD_VENDORS
export SYCL_CACHE_PERSISTENT=1
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0

6
env.sh
View file

@ -1,5 +1 @@
conda activate tts conda activate tts-nvidia
unset OCL_ICD_VENDORS
export SYCL_CACHE_PERSISTENT=1
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0