Adding agent-index (#189)
* Adding agent-index * review changes * review comments addressed * minor fix * fix CI failure * review comments * Fix agent index test and address review comments * Build Fixes --------- Co-authored-by: Benjamin Welton <bewelton@amd.com>
This commit is contained in:
committato da
GitHub
parent
2fe63d873e
commit
c30bb7cbda
@@ -23,7 +23,7 @@ add_test(
|
||||
NAME rocprofv3-test-pc-sampling-host-trap-transpose-multiple-agents-input-cmd-execute
|
||||
COMMAND
|
||||
$<TARGET_FILE:rocprofiler-sdk::rocprofv3> --kernel-trace --pc-sampling-unit time
|
||||
--pc-sampling-method host_trap --pc-sampling-interval 1 -d
|
||||
--pc-sampling-method host_trap --pc-sampling-interval 1 --agent-index absolute -d
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pc_sampling_cmd_input -o out --output-format csv --
|
||||
$<TARGET_FILE:transpose> ${TRANSPOSE_NUM_THREADS} ${TRANSPOSE_NUM_ITERATIONS})
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
"output_file": "out",
|
||||
"output_format": [
|
||||
"csv"
|
||||
]
|
||||
],
|
||||
"agent_index": "type-relative"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,3 +3,4 @@ jobs:
|
||||
pc_sampling_unit: "time"
|
||||
pc_sampling_method: "host_trap"
|
||||
pc_sampling_interval: 1
|
||||
agent-index: relative
|
||||
|
||||
@@ -49,7 +49,11 @@ def test_multi_agent_support(
|
||||
# Determine the agent on which sample was generated
|
||||
samples_df["Agent_Id"] = (
|
||||
samples_df["Dispatch_Id"]
|
||||
.map(input_kernel_trace_csv.set_index("Dispatch_Id")["Agent_Id"])
|
||||
.map(
|
||||
input_kernel_trace_csv.set_index("Dispatch_Id")["Agent_Id"]
|
||||
.str.split(" ")
|
||||
.str[1]
|
||||
)
|
||||
.astype(np.uint64)
|
||||
)
|
||||
sampled_agents = samples_df["Agent_Id"].unique()
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user