Пример #1
0
hashpipe_databuf_t * flag_correlator_output_databuf_create(int instance_id, int databuf_id) {
    size_t header_size = sizeof(hashpipe_databuf_t) + sizeof(hashpipe_databuf_cache_alignment);
    size_t block_size  = sizeof(flag_correlator_output_block_t);
    int    n_block     = N_COR_OUT_BLOCKS;
    return hashpipe_databuf_create(
        instance_id, databuf_id, header_size, block_size, n_block);
}
Пример #2
0
hashpipe_databuf_t * flag_gpu_input_databuf_create(int instance_id, int databuf_id) {
    size_t header_size = sizeof(hashpipe_databuf_t) + sizeof(hashpipe_databuf_cache_alignment);
    size_t block_size  = sizeof(flag_gpu_input_block_t);
    int    n_block     = N_GPU_INPUT_BLOCKS;
    return hashpipe_databuf_create(
        instance_id, databuf_id, header_size, block_size, n_block);
}
hashpipe_databuf_t *pitcher_output_databuf_create(int instance_id, int databuf_id)
{
    /* Calc databuf sizes */
    size_t header_size = sizeof (hashpipe_databuf_t);
    size_t block_size  = sizeof (pitcher_output_databuf_t);
    int    n_block = NUM_BLOCKS;

    return hashpipe_databuf_create(
        instance_id, databuf_id, header_size, block_size, n_block);
}