pulp-platform / ara

The PULP Ara is a 64-bit Vector Unit, compatible with the RISC-V Vector Extension Version 1.0, working as a coprocessor to CORE-V's CVA6 core
Other
324 stars 114 forks source link

similar to #224 #310

Closed Tanishqgithub closed 22 hours ago

Tanishqgithub commented 1 week ago

reopening #224 i need a final conclusion from this issue regarding what are the changes required in apps/fmatmul/main.c so that i get some valid numbers for computation in the output : `

= FMATMUL =


Calculating a (4 x 4) x (4 x 4) matrix multiplication...

Calculating fmatmul... The execution took 0 cycles. The performance is %f FLOP/cycle (%f% utilization).


Calculating a (8 x 8) x (8 x 8) matrix multiplication...

Calculating fmatmul... The execution took 0 cycles. The performance is %f FLOP/cycle (%f% utilization).


Calculating a (16 x 16) x (16 x 16) matrix multiplication...

Calculating fmatmul... The execution took 0 cycles. The performance is %f FLOP/cycle (%f% utilization).


Calculating a (32 x 32) x (32 x 32) matrix multiplication...

Calculating fmatmul... The execution took 0 cycles. The performance is %f FLOP/cycle (%f% utilization).


Calculating a (64 x 64) x (64 x 64) matrix multiplication...

Calculating fmatmul... The execution took 0 cycles. The performance is %f FLOP/cycle (%f% utilization).


Calculating a (128 x 128) x (128 x 128) matrix multiplication...

Calculating fmatmul... The execution took 0 cycles. The performance is %f FLOP/cycle (%f% utilization). Verifying result... Passed.`

mp-17 commented 1 week ago

Hello @Tanishqgithub,

You are running fmatmul on spike and not on Ara, right? As said in https://github.com/pulp-platform/ara/issues/224, printing in integer or hex should do the trick if you need to print numbers. Have you already tried? Also, you cannot get useful numbers with spike since it's just simulating a processor with IPC == 1.

Feel free to reopen this issue if something is not clear.