rollback vectoradd int example for FPGAs
@@ -25,10 +25,9 @@ import uk.ac.manchester.tornado.api.annotations.Parallel;
public class VectorAddInt {
private static void vectorAdd(int[] a, int[] b, int[] c) {
- // for (@Parallel int i = 0; i < c.length; i++) {
- // c[i] = a[i] + b[i];
- // }
- c[0] = a[0] + b[0];
+ for (@Parallel int i = 0; i < c.length; i++) {
+ c[i] = a[i] + b[i];
+ }
}
public static void main(String[] args) {
