From c7478b14b60333a9177933ee40ebc8da543d1e42 Mon Sep 17 00:00:00 2001 From: Sarah Chastain Date: Fri, 16 Feb 2024 14:11:20 -0700 Subject: [PATCH] Update simple.hpp Remove optimizations, they don't work anyway --- src/formats/simple.hpp | 38 +++----------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/src/formats/simple.hpp b/src/formats/simple.hpp index 11e764091..b663da222 100644 --- a/src/formats/simple.hpp +++ b/src/formats/simple.hpp @@ -91,27 +91,9 @@ class SIMPLEProcessor : virtual public PacketProcessor { int chan = 0; int nelem = 256; - //cout << pkt->src << ", " << pkt->nsrc << endl; - //cout << pkt->nchan << endl; - for( ; chan(&out[pkt->src + pkt->nsrc*chan]), - _mm256_loadu_si256(reinterpret_cast(&in[chan]))); -#else*/ -// #if defined BF_SSE_ENABLED && BF_SSE_ENABLED -// const unaligned128_type* dsrc = (const unaligned128_type*) &in[chan]; -// aligned128_type* ddst = (aligned128_type*) &out[chan]; -// -// _mm_store_si128(reinterpret_cast<__m128i*>(ddst), -// _mm_loadu_si128(reinterpret_cast(dsrc))); // Problem HERE? -// _mm_store_si128(reinterpret_cast<__m128i*>(ddst+1), -// _mm_loadu_si128(reinterpret_cast(dsrc+1))); -// #else - ::memcpy(&out[chan], - &in[chan], sizeof(otype)); -// #endif -// #endif - } + for( ; chan(&aligned_data[src + nsrc*(c + nelem*t)]), - _mm256_setzero_si256()); -#else*/ -// #if defined BF_SSE_ENABLED && BF_SSE_ENABLED -// aligned128_type* ddst = (aligned128_type*) &aligned_data[src + nsrc*(c + nelem*t)]; -// -// _mm_store_si128(reinterpret_cast<__m128i*>(ddst), -// _mm_setzero_si128()); -// _mm_store_si128(reinterpret_cast<__m128i*>(ddst+1), -// _mm_setzero_si128()); -// #else ::memset(&aligned_data[src + nsrc*(c + nelem*t)], 0, sizeof(otype)); -// #endif -//#endif } } }