mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	Fix to no USE_FP16 case
This commit is contained in:
		@@ -470,13 +470,14 @@ namespace Optimization {
 | 
			
		||||
      return in;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
#define USE_FP16
 | 
			
		||||
  struct PrecisionChange {
 | 
			
		||||
    static inline __m256i StoH (__m256 a,__m256 b) {
 | 
			
		||||
      __m256 h;
 | 
			
		||||
#ifdef USE_FP16
 | 
			
		||||
      __m128i ha = _mm256_cvtps_ph(a,0);
 | 
			
		||||
      __m128i hb = _mm256_cvtps_ph(b,0);
 | 
			
		||||
      __m256 h = _mm256_castps128_ps256(ha);
 | 
			
		||||
      h = _mm256_castps128_ps256(ha);
 | 
			
		||||
      h = _mm256_insertf128_ps(h,hb,1);
 | 
			
		||||
#else 
 | 
			
		||||
      assert(0);
 | 
			
		||||
 
 | 
			
		||||
@@ -340,7 +340,7 @@ namespace Optimization {
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
#define USE_FP16
 | 
			
		||||
  struct PrecisionChange {
 | 
			
		||||
    static inline __m512i StoH (__m512 a,__m512 b) {
 | 
			
		||||
      __m512i h;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user