vm_setup/pmevo/evo-algo/src/simulation.cpp
/// Dump an AVX(2) vector of 32-bit floats
Dump an AVX(2) vector of 32-bit floats
Dump an AVX ( 2 ) vector of 32 - bit floats
void dump_vec_ps(__m256 v) {
    float* buf = (float*)valloc(W * sizeof(float));
    _mm256_stream_ps(buf, v);
    std::cerr << "fvec:";
    for (int i = W-1; i >= 0; --i) {
        std::cerr << " " << buf[i];
    }
    std::cerr << "\n";
    free(buf);
}
void dump_vec_ps ( __m256 v ) { float * buf = ( float * ) valloc ( W * sizeof ( float ) ) ; _mm256_stream_ps ( buf , v ) ; std :: cerr << " " ; for ( int i = W - 1 ; i >= 0 ; -- i ) { std :: cerr << " " << buf [ i ] ; } std :: cerr << " \n " ; free ( buf ) ; }
Dump an AVX(2) vector of 32-bit floats
Dump an AVX ( 2 ) vector of 32 - bit floats