Forum Discussion
amaltaha
Occasional Contributor
4 years agoWeird 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...
- 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!
aikeu
Regular Contributor
4 years agoHi amaltaha,
May I know which reference example that you build to run your project?
I not sure the project you used may not considered some of the changes required for the hardware nodes to run. Therefore you might get different results when running on hardware as compared to emulation.
I think will be better to leverage on a working reference example project to build your own project.
Thanks.
Regards,
Aik Eu