Hello, I am trying to do cache-only simulation on an mlir-lowered binary, with llvm openmp.
Running the command
/data/dhairya/sniper/run-sniper -c rpl.cfg --frontend=pin --cache-only -- ../oracle_exe/compiled/2mm.c.mlir.out
failed on an openmp assert
[SNIPER] Start
[RECORD-TRACE] Using Pin frontend (frontend/pin-frontend)
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Sniper using SIFT/trace-driven frontend
[SNIPER] Running full application in CACHE_ONLY mode
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Enabling performance models
Assertion failure at kmp_affinity.cpp(2664): hw_thread_index > 0.
OMP: Error #13: Assertion failure at kmp_affinity.cpp(2664).
OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/. [TRACE:0] -- DONE --
Pin app terminated abnormally due to signal 6.
[SNIPER] Disabling performance models
[SNIPER] Leaving ROI after 41.50 seconds
[SNIPER] Simulated 93.1M instructions, 275.9M cycles, 0.34 IPC
[SNIPER] Simulation speed 2244.0 KIPS (2244.0 KIPS / target core - 445.6ns/instr)
[SNIPER] Sampling: executed 0.00% of simulated time in detailed mode
[SNIPER] Setting instrumentation mode to FAST_FORWARD
[SNIPER] End
[SNIPER] Elapsed time: 45.87 seconds
On disabling KMP_AFFINITY, it apparently can't open the file /tmp/tmpz25lchn3/run_benchmarks_response.app0.th0.sift (the file doesn't exist)
[SNIPER] Start
[RECORD-TRACE] Using Pin frontend (frontend/pin-frontend)
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Sniper using SIFT/trace-driven frontend
[SNIPER] Running full application in CACHE_ONLY mode
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Enabling performance models
zfstream.cc:198: cvifstream::cvifstream(const char*, std::__1::ios_base::openmode): assertion "this->stream != NULL" failed
libc: zfstream.cc:198: cvifstream::cvifstream(const char*, std::__1::ios_base::openmode): assertion "this->stream != NULL" failed
[SIFT:0] Error: No such file or directory
[TRACE:0] -- DONE --
Pin app terminated abnormally due to signal 6.
[SNIPER] Disabling performance models
[SNIPER] Leaving ROI after 42.37 seconds
[SNIPER] Simulated 93.2M instructions, 275.9M cycles, 0.34 IPC
[SNIPER] Simulation speed 2199.6 KIPS (2199.6 KIPS / target core - 454.6ns/instr)
[SNIPER] Sampling: executed 0.00% of simulated time in detailed mode
[SNIPER] Setting instrumentation mode to FAST_FORWARD
[SNIPER] End
[SNIPER] Elapsed time: 46.74 seconds
Then I tried giving -n 12, it couldn't establish the connection and ended
[SNIPER] Start
[RECORD-TRACE] Using the SDE frontend (sift/recorder)
[tid:4146673] rpl.cfg : No such file or directory
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Sniper using SIFT/trace-driven frontend
[SNIPER] Running full application in DETAILED mode
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Enabling performance models
[SNIPER] Setting instrumentation mode to DETAILED
[SNIPER] WARNING: No SIFT connections made yet. Waiting for a total of 360 seconds.