Exemplo n.º 1
0
int main(int argc, char* argv[])
{
    double *A[NB][NB];
    double *B[NB][NB];

    // Matrices initializations
    //   printf("Generating matrices... \n");
    genmat(A);
    genmat(B);

    // Different versions' execution
    lu_serial( A );
#pragma omp parallel
#pragma omp single
    lu_dependencies( B );
    
    
//     print_matrices( A, B );
            
    // Check results
    if( !check_matrices( A, B ) )
        printf("Execution of dependencies version has failed\n");

    return 0;
}
Exemplo n.º 2
0
void sparselu_init (float ***pBENCH, char *pass)
{
   *pBENCH = (float **) malloc(bots_arg_size*bots_arg_size*sizeof(float *));
   genmat(*pBENCH);
   print_structure(pass, *pBENCH);
}