I have millions of Eigen fp32 , Eigen::MatrixXf::Random(1, 512)
matrix subtract and also squaredNorm are using for calculations.
Is FPGA can make it faster than the CPU and what magnitude ? Is there any FPGA in the market that I can evaluate =
Eigen::MatrixXf feat , b_cmp = Eigen::MatrixXf::Random(1, 512);
for (int i = r.begin(); i < r.end(); ++i) {
auto distance = (feat.row(i) - b_cmp).squaredNorm();
if (distance < int xx ) {
mutex1.lock();
found_number.push_back(i);
mutex1.unlock();
}
}