mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	sycl : fix powf call in device code (#8368)
This commit is contained in:
		 Alberto Cabrera Pérez
					Alberto Cabrera Pérez
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							3f2d538b81
						
					
				
				
					commit
					2ec846d558
				
			| @@ -55,7 +55,7 @@ static void rope_norm( | |||||||
|     const int i = row*ne0 + i0; |     const int i = row*ne0 + i0; | ||||||
|     const int i2 = row/p_delta_rows; |     const int i2 = row/p_delta_rows; | ||||||
|  |  | ||||||
|     const float theta_base = pos[i2]*powf(theta_scale, i0/2.0f); |     const float theta_base = pos[i2] * sycl::pow(theta_scale, i0 / 2.0f); | ||||||
|  |  | ||||||
|     const float freq_factor = has_ff ? freq_factors[i0/2] : 1.0f; |     const float freq_factor = has_ff ? freq_factors[i0/2] : 1.0f; | ||||||
|  |  | ||||||
| @@ -98,7 +98,7 @@ static void rope_neox( | |||||||
|     const int i  = row*ne0 + i0/2; |     const int i  = row*ne0 + i0/2; | ||||||
|     const int i2 = row/p_delta_rows; |     const int i2 = row/p_delta_rows; | ||||||
|  |  | ||||||
|     const float theta_base = pos[i2]*powf(theta_scale, i0/2.0f); |     const float theta_base = pos[i2] * sycl::pow(theta_scale, i0 / 2.0f); | ||||||
|  |  | ||||||
|     const float freq_factor = has_ff ? freq_factors[i0/2] : 1.0f; |     const float freq_factor = has_ff ? freq_factors[i0/2] : 1.0f; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user