I am a beginner at parallelization, can somebody help me with how to make this program parallel with OpenMP? I'm trying but won't work. The running time is always almost the same.
{
double start = omp_get_wtime();
#pragma omp parallel for
for (int i = 0; i < Row1; i++) {
for (int j = 0; j < Col2; j++) {
rslt[i][j] = 0;
for (long long int k = 0; k < Row2; k++) {
rslt[i][j] += firstMatrix[i][k] * secondMatrix[k][j];
}
//printf("%lld\t", rslt[i][j]);
}
//printf("\n");
}
double stop = omp_get_wtime();
printf("Multiplication Time (s) %.6f\n", (stop - start));
}