LLM: Set different env based on different Linux kernels (#10566)
This commit is contained in:
		
							parent
							
								
									d86477f14d
								
							
						
					
					
						commit
						fbeb10c796
					
				
					 2 changed files with 16 additions and 6 deletions
				
			
		| 
						 | 
					@ -1,5 +1,10 @@
 | 
				
			||||||
source /opt/intel/oneapi/setvars.sh
 | 
					source /opt/intel/oneapi/setvars.sh
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
export USE_XETLA=OFF
 | 
					export USE_XETLA=OFF
 | 
				
			||||||
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1
 | 
					export SYCL_CACHE_PERSISTENT=1
 | 
				
			||||||
 | 
					KERNEL_VERSION=$(uname -r)
 | 
				
			||||||
 | 
					if [[ $KERNEL_VERSION != *"6.5"* ]]; then
 | 
				
			||||||
 | 
					    export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
python run.py # make sure config YAML file
 | 
					python run.py # make sure config YAML file
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,11 @@
 | 
				
			||||||
source /opt/intel/oneapi/setvars.sh
 | 
					source /opt/intel/oneapi/setvars.sh
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
export LD_PRELOAD=${LD_PRELOAD}:${CONDA_PREFIX}/lib/libtcmalloc.so
 | 
					export LD_PRELOAD=${LD_PRELOAD}:${CONDA_PREFIX}/lib/libtcmalloc.so
 | 
				
			||||||
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1
 | 
					 | 
				
			||||||
export ENABLE_SDP_FUSION=1
 | 
					export ENABLE_SDP_FUSION=1
 | 
				
			||||||
 | 
					export SYCL_CACHE_PERSISTENT=1
 | 
				
			||||||
 | 
					KERNEL_VERSION=$(uname -r)
 | 
				
			||||||
 | 
					if [[ $KERNEL_VERSION != *"6.5"* ]]; then
 | 
				
			||||||
 | 
					    export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
python run.py # make sure config YAML file
 | 
					python run.py # make sure config YAML file
 | 
				
			||||||
		Loading…
	
		Reference in a new issue