Use the correct offset when creating render nodes on each partition mode on MI300 (#310)

* Use the correct offset when creating render nodes on each partition mode on MI300

* Use the correct offset when creating render nodes on each partition mode on MI300

* code clean up
This commit is contained in:
Aryan Salmanpour
2024-04-09 18:17:02 -04:00
committed by GitHub
parent f8bf587f92
commit f2d1ad75eb
2 changed files with 35 additions and 20 deletions
+2 -3
View File
@@ -89,7 +89,6 @@ private:
rocDecStatus DestroyDataBuffers();
void GetVisibleDevices(std::vector<int>& visible_devices);
void GetCurrentComputePartition(std::vector<ComputePartition> &currnet_compute_partitions);
void GetNumRenderCardsPerDevice(std::string device_name, uint8_t device_id, std::vector<int>& visible_devices,
std::vector<ComputePartition> &current_compute_partitions,
int &num_render_cards_per_socket, int &offset);
void GetDrmNodeOffset(std::string device_name, uint8_t device_id, std::vector<int>& visible_devices,
std::vector<ComputePartition> &current_compute_partitions, int &offset);
};