Skip to content

Commit

Permalink
SWDEV-479505 Updating ROCtracer spec for device ids
Browse files Browse the repository at this point in the history
Change-Id: I9b65d91b36b77183d5fa55f23e4926510e0b5832
  • Loading branch information
bgopesh committed Oct 11, 2024
1 parent f3df78f commit d5bbc8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/roctracer_spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,16 @@ roctracer_status_t roctracer_disable_domain_callback(
roctracer_status_t roctracer_disable_callback();
```

### 3.4 Activity API
```

The activity records are asynchronously logged to the pool and can be
associated with the respective API callbacks using the correlation ID.
Activity API can be used to enable collecting the records with
timestamp data for API calls and GPU activity like kernel submits,
memory copies, and barriers.

```
// Correlation id
typedef uint64_t activity_correlation_id_t;
Expand Down Expand Up @@ -254,7 +256,13 @@ struct activity_record_t {
};
size_t bytes; // data size bytes
};
```

> [!NOTE]
> rocprofiler reported device ids are in sync with node-ids reported by KFD(kernel). This can easily be verified by `rocm-smi` under `Node`.
> Please also note that this device id might not be in sync with the ones provided by `hipGetDeviceProperties` which includes CPU agents and starts from 0.
```
Return next record:
static inline int roctracer_next_record(
const activity_record_t* record, // [in] record ptr
Expand Down

0 comments on commit d5bbc8a

Please sign in to comment.