UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer boydun
Observer
482 Views
Registered: ‎04-15-2018

Parallelizing computation along right axis

Jump to solution

The logic below uses 25 DSP slices, while my intention is for it to use ~500 to fully parallelize the matrix-vector calculation. It looks like rather than parallelizing along the DIMENSION axis of the matrix, the computation is being parallelized along the CHUNK_SIZE axis despite my pragma and the structure of the loops. Any ideas why that might be and how to fix it?

for (int k = 0; k < CHUNK_SIZE; k++) {
for (int j = 0; j < DIMENSION; j++) {
#pragma HLS UNROLL factor=500
vec_out[j] += vec_in[k + chunk_iter * CHUNK_SIZE] * mat_chunk[j * CHUNK_SIZE + k];
}
}

Thanks,
Peter

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
528 Views
Registered: ‎03-24-2010

Re: Parallelizing computation along right axis

Jump to solution

Have you partitioned "vec_out" fully?

And have you partitioned "vec_in" and "mat_chunk"?

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
529 Views
Registered: ‎03-24-2010

Re: Parallelizing computation along right axis

Jump to solution

Have you partitioned "vec_out" fully?

And have you partitioned "vec_in" and "mat_chunk"?

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Xilinx Employee
Xilinx Employee
432 Views
Registered: ‎01-12-2017

Re: Parallelizing computation along right axis

Jump to solution
0 Kudos