Skip to content

Reproducing the results from the TACO paper #4

@yijunyu

Description

@yijunyu

Hi,

I have some trouble in reproducing the results by following the README. To record the problem more precisely, I have done the following in the experiments:

  1. installed the Ubuntu 22.04 LTS on top of a PC running the CPU of Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz.
  2. installed the prerequisite software packages sudo apt install -y git gcc g++ make cmake.
  3. issued the initial make command, which ends successfully.
  4. The problem occurs when I am running make accuracy. It reports the following error message:
gcc reuse-invalidation-benchs/reuse-invalidation.c -o reuse-invalidation-benchs/reuse-invalidation -fopenmp
#rm -r short_rd_inc_output
PWD=`pwd` && HPCRUN_WP_REUSE_PROFILE_TYPE="TEMPORAL" HPCRUN_PROFILE_L3=false HPCRUN_WP_CACHELINE_INVALIDATION=true HPCRUN_WP_DONT_FIX_IP=true HPCRUN_WP_DONT_DISASSEMBLE_TRIGGER_ADDRESS=true OMP_NUM_THREADS=32 HPCRUN_WP_REUSE_BIN_SCHEME=1100,2 /usr/bin/time -f "Elapsed Time , %e, system, %S, user, %U, memory, %M" /home/yijun/ReuseTracker/reusetracker-bin/bin/hpcrun  -o short_inc_output -e WP_REUSETRACKER -e MEM_UOPS_RETIRED:ALL_LOADS@100000 -e MEM_UOPS_RETIRED:ALL_STORES@100000 reuse-invalidation-benchs/reuse-invalidation -outer 10 -a0 20 -a1 1000 -b0 20 -b1 2000 -c0 20 -c1 4000 -d0 20 -d1 8000 -e0 20 -e1 16000 -inv 1 2>&1 | tee short_rd_inc_log
[89168, N]: Bad file descriptor: Failed with -1 on line 361 of file sample-sources/watchpoint_support.c
  1. To diagnose the problem, the error comes from the following file ./hpctoolkit/src/tool/hpcrun/sample-sources/watchpoint_support.c
   341      struct perf_event_attr peLBR = {
   342        .type                   = PERF_TYPE_BREAKPOINT,
   343        .size                   = sizeof(struct perf_event_attr),
   344        .bp_type                = HW_BREAKPOINT_W,
   345        .bp_len                 = HW_BREAKPOINT_LEN_1,
   346        .bp_addr                = (uintptr_t)&dummyWP[0],
   347        .sample_period          = 1,
   348        .precise_ip             = 0 /* arbitraty skid */,
   349        .sample_type            = 0,
   350        .exclude_user           = 0,
   351        .exclude_kernel         = 1,
   352        .exclude_hv             = 1,
   353        .disabled               = 0, /* enabled */
   354      };
   355      int fd =  perf_event_open(&peLBR, 0, -1, -1 /*group*/, 0);
   356      if (fd != -1) {
   357        wpConfig.isLBREnabled = true;
   358      } else {
   359        wpConfig.isLBREnabled = false;
   360      }
   361      CHECK(close(fd));

Could you take a look at it to see how to address this problem?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions