[SWDEV-501958] Doc Update deprecating pasid in 7.0 (#166)

Change-Id: Ie19ba271c901d0be324143474871241272166124

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I024f7e2b5e7a5fcd6e1d12181d21ffacfe29c00f
このコミットが含まれているのは:
Arif, Maisam
2025-03-07 14:55:25 -06:00
committed by Maisam Arif
コミット 0e67568902
8個のファイルの変更12行の追加7行の削除
+3 -1
ファイルの表示
@@ -444,7 +444,9 @@ Updated structure `amdsmi_vram_info_t`:
### Upcoming changes
- **Deprication of the `AMDSMI_LIB_VERSION_YEAR` enum and API fields.**
- **Deprication in ROCm 7.0 of the `AMDSMI_LIB_VERSION_YEAR` enum and API fields.**
- **Deprication in ROCm 7.0 of the `pasid` field within struct `amdsmi_process_info_t`**
### Known issues
+2 -2
ファイルの表示
@@ -3296,7 +3296,7 @@ Output: List of python dicts each containing a process information
Field | Description
---|---
`process_id` | Process ID
`pasid` | PASID
`pasid` | PASID (Not working in ROCm 6.4+, deprecating in 7.0)
`vram_usage` | VRAM usage
`sdma_usage` | SDMA usage in microseconds
`cu_occupancy` | Compute Unit usage in percents
@@ -3330,7 +3330,7 @@ Output: Dict containing a process information
Field | Description
---|---
`process_id` | Process ID
`pasid` | PASID
`pasid` | PASID (Not working in ROCm 6.4+, deprecating in 7.0)
`vram_usage` | VRAM usage
`sdma_usage` | SDMA usage in microseconds
`cu_occupancy` | Compute Unit usage in percents
+1 -1
ファイルの表示
@@ -1975,7 +1975,7 @@ typedef struct {
*/
typedef struct {
uint32_t process_id; //!< Process ID
uint32_t pasid; //!< PASID
uint32_t pasid; //!< PASID (Not working in ROCm 6.4+, deprecating in 7.0)
uint64_t vram_usage; //!< VRAM usage in MB
uint64_t sdma_usage; //!< SDMA usage in microseconds
uint32_t cu_occupancy; //!< Compute Unit usage in percent
+2 -2
ファイルの表示
@@ -4359,7 +4359,7 @@ def amdsmi_get_gpu_compute_process_info() -> List[Dict[str, int]]:
return [
{
"process_id": proc.process_id,
"pasid": proc.pasid,
"pasid": proc.pasid, # Not working in ROCm 6.4+, deprecating in 7.0
"vram_usage": proc.vram_usage,
"sdma_usage": proc.sdma_usage,
"cu_occupancy": proc.cu_occupancy,
@@ -4381,7 +4381,7 @@ def amdsmi_get_gpu_compute_process_info_by_pid(pid: int) -> Dict[str, int]:
return {
"process_id": proc.process_id,
"pasid": proc.pasid,
"pasid": proc.pasid, # Not working in ROCm 6.4+, deprecating in 7.0
"vram_usage": proc.vram_usage,
"sdma_usage": proc.sdma_usage,
"cu_occupancy": proc.cu_occupancy,
+1 -1
ファイルの表示
@@ -1388,7 +1388,7 @@ typedef struct {
*/
typedef struct {
uint32_t process_id; //!< Process ID
uint32_t pasid; //!< PASID: (Process Address Space ID)
uint32_t pasid; //!< PASID: (Process Address Space ID) (Not working in ROCm 6.4+, deprecating in 7.0)
uint64_t vram_usage; //!< VRAM usage
uint64_t sdma_usage; //!< SDMA usage in microseconds
uint32_t cu_occupancy; //!< Compute Unit usage in percent
+1
ファイルの表示
@@ -243,6 +243,7 @@ int32_t AMDSmiGPUDevice::get_compute_process_list_impl(GPUComputeProcessList_t&
// Is this device running this process?
if (list_device_ptr[device_idx] == get_gpu_id()) {
rsmi_process_info_t rsmi_dev_proc_info{};
// TODO remove pasid Not working in ROCm 6.4+, deprecating in 7.0
auto status_code = rsmi_compute_process_info_by_device_get(process_id, list_device_ptr[device_idx], &rsmi_dev_proc_info);
if ((status_code == rsmi_status_t::RSMI_STATUS_SUCCESS) &&
((rsmi_dev_proc_info.process_id == process_id) && (rsmi_dev_proc_info.pasid == proc_addr_id))) {
+1
ファイルの表示
@@ -144,6 +144,7 @@ amdsmi_status_t gpuvsmi_get_pid_info(const amdsmi_bdf_t &bdf, long int pid,
return AMDSMI_STATUS_NO_PERM;
/* Vectors to check if repated fd pasid */
// TODO remove pasid Not working in ROCm 6.4+, deprecating in 7.0
std::vector<int> pasids;
memset(&info, 0, sizeof(info));
+1
ファイルの表示
@@ -64,6 +64,7 @@ void TestProcInfoRead::Close() {
static void dumpProcess(amdsmi_process_info_t *p) {
assert(p != nullptr);
std::cout << "\t** ProcessID: " << p->process_id << " ";
// TODO remove pasid Not working in ROCm 6.4+, deprecating in 7.0
std::cout << "PASID: " << p->pasid << " ";
std::cout << std::endl;
}