Skip to content

I can't find the path of the file in the testbench. #4

@GXY1207

Description

@GXY1207

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions