unit_tests/test_pe.cpp
// generate payloads with a certain dependence distance.
// distance < 0 means no dependency.
generate payloads with a certain dependence distance.
distance < 0 means no dependency.
generate payloads with a certain dependence distance . distance < 0 means no dependency .
void testcase_gen(
    int distance,
    std::vector<test_pld_t> &test_input
) {
    test_input.resize(TEST_LEN);
    for (size_t j = 0; j < TEST_LEN; j++) {
        if (distance < 0) {
            test_input[j].row_idx = j % BANK_SIZE;
        } else {
            test_input[j].row_idx = j % distance;
        }
        test_input[j].mat_val = 1;
        test_input[j].vec_val = 1;
    }
}
void testcase_gen ( int distance , std :: vector < test_pld_t > & test_input ) { test_input . resize ( TEST_LEN ) ; for ( size_t j = 0 ; j < TEST_LEN ; j ++ ) { if ( distance < 0 ) { test_input [ j ] . row_idx = j % BANK_SIZE ; } else { test_input [ j ] . row_idx = j % distance ; } test_input [ j ] . mat_val = 1 ; test_input [ j ] . vec_val = 1 ; } }
generate payloads with a certain dependence distance.
generate payloads with a certain dependence distance .