sw/benchmarks/src/ocean.c
// run this function once per core
run this function once per core
run this function once per core
void parallel(void *p)
{
    params_data_t *params = p;
    percore_data_t *percore = machine_malloc(sizeof(percore_data_t));
    percore->params = *params;
    init(percore);
    prepare(percore);
    double t;
    for (t=0.0; t<params->time_interval; t+=params->dtau)
        iteration(percore);
}
void parallel ( void * p ) { params_data_t * params = p ; percore_data_t * percore = machine_malloc ( sizeof ( percore_data_t ) ) ; percore -> params = * params ; init ( percore ) ; prepare ( percore ) ; double t ; for ( t = 0.0 ; t < params -> time_interval ; t += params -> dtau ) iteration ( percore ) ; }
run this function once per core
run this function once per core