Forum Discussion

amaltaha's avatar
amaltaha
Icon for Occasional Contributor rankOccasional Contributor
4 years ago
Solved

Weird behavior of dpc++ code after running it on FPGA device

Hello, I am using DPC++ to accelerate knn algorithm on FPGA device. The following code is the code I wrote for the euclidean distance. The problem is that the fpga_emulation works very well with n...
  • amaltaha's avatar
    4 years ago

    Hello Aik Eu,

    Thank you for your reply, I removed the no_init from the accessor and is now working correctly as expected.

    this line:
    accessor dif(res_buf, h, write_only, no_init);

    became this:
    accessor dif(res_buf, h, write_only);

    Thank you!