matmul-16 and dotproduct examples

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

matmul-16 and dotproduct examples

Postby Angrod » Sun May 10, 2015 9:31 am

Hi everyone,

I'm having troubles modifing Dotproduct and matmul-16 under de apps folder,

Dotproduct: Every time I run the program the execution stops showing the output messages after the e_load()

Calculating sum of products of two integer vectors of length 4096 initalized to all 0x1's using 16 Ccores.
........
/home/linaro/epiphany-examples/apps/dotproduct/run.sh PASSED

I'm trying to get the execution times in order to analyse the results, and the only way I have found of doing this without printing the times is, doing time ./run.sh but it's not really de way to do it.

Matmul-16: I don't know what I'm doing wrong here, the standard execution goes flawlessly but every time I change these identifiers the execution won't stop. If I'm understanding this correctly if I change _Nside for 1, it will use only one Core and if I lower _Score the workload will be lower

#define _Nchips 4 // # of chips in operand matrix side
#define _Nside 4 // # of cores in chip side
#define _Ncores (_Nside * _Nside) // Num of cores = 16
#define _Score 32 // side size of per-core sub-submatrix (max 32)
#define _Schip (_Score * _Nside) // side size of per-chip submatrix
#define _Smtx (_Schip * _Nchips) // side size of operand matrix
Angrod
 
Posts: 2
Joined: Sun May 10, 2015 9:18 am

Re: matmul-16 and dotproduct examples

Postby ysapir » Sun May 10, 2015 2:05 pm

Angrod,

I don't think that the matmul program supports a single core case, as it relies on inter-core communications.
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: matmul-16 and dotproduct examples

Postby Angrod » Sun May 10, 2015 2:22 pm

It's not just for one core, It happens the same with _Nside 2 or 3 but thanks for the answer I'll try to make a more simpler one, and see how it goes!
Angrod
 
Posts: 2
Joined: Sun May 10, 2015 9:18 am


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 20 guests

cron