Skip to content

Commit

Permalink
Fix get_timestamp_context_duration in test_harness_event (#73)
Browse files Browse the repository at this point in the history
* get correct device properties based on property type
  • Loading branch information
darmroz authored Sep 12, 2024
1 parent ba9e13c commit 5599b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/test_harness/src/test_harness_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ get_timestamp_context_duration(const ze_kernel_timestamp_result_t *timestamp,
const ze_structure_type_t property_type) {

double context_time_ns;
auto device_properties = lzt::get_device_properties(device);
auto device_properties = lzt::get_device_properties(device, property_type);
uint64_t timestamp_freq = device_properties.timerResolution;
uint64_t timestamp_max_val =
~(-1L << device_properties.kernelTimestampValidBits);
Expand Down

0 comments on commit 5599b9b

Please sign in to comment.