c++ - Why does it gives segmentation fault in cilk, I am using ICC compiler -


I'm new to programming in cilk. I'm trying to multiply the block matrix using cilk. But for some reason I have got a division fault. Can you please help me?

  zero cilk_vec_mmm (int m, int n, int p, float a [m] [1000], float b [p] [1000], float c [m] [1000]) { Int s = 50; {For (int i = 0; i & lt; m; i + = s) {for (int j = 0; j & lt; p; j + = s) {for (int k = 0; k & lt; N [k: k + s] {c [i: i + (s-1)] [j: j + (s-1)] + = a [i: i + s-1] [k: k + s- 1] * b [k: k + s-1] [j: j + s 1]; }}}}}}    

Subscript are incorrect in Silk Plus, [M: N] Means the subscript M, M + 1, M + 2, ... M + N -1, which is different from the same (M: N) notation in Forter 9.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -