From 915875d311e6eaff97f05d56dbdcdaeef8987e84 Mon Sep 17 00:00:00 2001 From: Nicolas Fley <nicolas.fley@student.ecp.fr> Date: Wed, 8 Mar 2017 20:30:32 +0100 Subject: [PATCH] Comments for int variable added --- prod_mat_vec/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prod_mat_vec/main.c b/prod_mat_vec/main.c index 875df0c..200a805 100644 --- a/prod_mat_vec/main.c +++ b/prod_mat_vec/main.c @@ -45,7 +45,10 @@ void prod_mat_vec(int width, int height, float * vector_res, float ** matrix, fl } int main (int argc, char *argv[]) { - int rank, size, size_prob, w_prob, h_prob, h_base; + int rank, size, + size_prob, // problem size defined by the user (size of the matrix) + w_prob, // width of the matrix assigned to this processus (should be the same than the big matrix) + h_prob; // height of the matrix assigned to this processus float * vector; // processus' x vector float * vector_tot; // x vector agregation from all the processus float * vector_res; // product matrix vector's result of the current processus -- GitLab