Commit dff1af67 authored by Andrei Tosa's avatar Andrei Tosa
Browse files

Stable version ran on alveo

parent 68061b42
......@@ -5,12 +5,15 @@
*.info
*.link_summary
*.compile_summary
emconfig.json
*.json
*.out
*.csv
*.wcfg
*.wdb
*.protoinst
_x
_x.*
.run
.Xil
.csv
.ipcache
.wcfg
.wdb
xclbin
File added
......@@ -7,5 +7,5 @@ Compute Unit, Function, Running Time (us), Intra-Kernel Dataflow Stalls (%), Ext
Compute Units: Port Data Transfer
Compute Unit, Port, Write Time (us), Outstanding Write (%), Read Time (us), Outstanding Read (%)
rndgen_1,m_axi_gmem,0.183,32.164,0.000,0.000
rndgen_1,m_axi_gmem,0.180,31.579,0.000,0.000
......@@ -15,7 +15,7 @@ int main(int argc, char** argv)
cl_int err;
unsigned fileBufSize;
// Allocate Memory in Host Memory
uint32_t seed = 1;
uint32_t seed = 12345;
std::vector<uint32_t,aligned_allocator<uint32_t>> source_hw_results(SET_SIZE);
std::vector<uint32_t,aligned_allocator<uint32_t>> source_sw_results(SET_SIZE);
......@@ -53,6 +53,7 @@ int main(int argc, char** argv)
std::cout << "* * * MEMORY OFFLOAD\n";
q.finish();
std::cout << "* * * SIMULATION DONE\n";
// OPENCL HOST CODE AREA END
......@@ -60,13 +61,14 @@ int main(int argc, char** argv)
std::ofstream fout("data.out");
bool match = true;
for (int i = 0 ; i < SET_SIZE ; i++){
//if (i % 5 == 0)
// fout << '\n';
//fout << source_hw_results[i] << ' ';
if (i % 5 == 0)
fout << '\n';
fout << source_hw_results[i] << ' ';
if (source_sw_results[i] != source_hw_results[i]) {
match = false;
fout << source_sw_results[i] << ' ' << source_hw_results[i] << '\n';
std::cout << "Not matched: " << source_sw_results[i] << ' ' << source_hw_results[i] << '\n';
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment