You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a novice in HLS and I am trying to implement parallel computation of element-wise multiplication between arrays A and B using the simple code above. I added parallelism by unrolling the loop and using a temporary variable, but I found that this approach still cannot achieve parallel computation of the elements and it is still sequential. I'm not sure what the problem is.
The text was updated successfully, but these errors were encountered:
`#include "ap_int.h"
#include "test.h"
void test(ap_fixed<18,10> A[10],ap_fixed<18,10> B[10], ap_fixed<18,10> C[10]){
#pragma HLS ARRAY_PARTITION variable=temp1 complete dim=1
#pragma HLS ARRAY_PARTITION variable=temp2 complete dim=1
#pragma HLS ARRAY_PARTITION variable=temp3 complete dim=1
#pragma HLS PIPELINE II=1
temp1[i] = A[i];
temp2[i] = B[i];
}
#pragma HLS PIPELINE II=1
#pragma HLS UNROLL
temp3[i] = temp1[i]*temp2[i];
}
#pragma HLS PIPELINE II=1
C[i] = temp3[i];
}
}`
I am a novice in HLS and I am trying to implement parallel computation of element-wise multiplication between arrays A and B using the simple code above. I added parallelism by unrolling the loop and using a temporary variable, but I found that this approach still cannot achieve parallel computation of the elements and it is still sequential. I'm not sure what the problem is.
The text was updated successfully, but these errors were encountered: