I can't find the path of the file in the testbench.
Opened this issue · 0 comments
GXY1207 commented
The code in xql6/kernel/q6_paged_tb
where is this dat?
int main (int argc, char* argv[])
{
#if 0
// hard to use in HLS due to different cwd. Hardcoding data file instead.
if (argc != 2) {
std::cout << "Usage tup tupdata.dat" << std::endl;
return 100;
}
//std::string fnme = "tupdata.dat";
std::string fnme (argv [1]);
#endif
std::string fnme ("/wrk/xsjhdnobkup4/parik/pgdb/hls/host/tupdata.dat");
FILE *fp = fopen (fnme. c_str (), "rb");
if (!fp) {
std::cout << "Failed to open file " << fnme << std::endl;
return 100;
}
Host host (fp);