Collect compute partition devices under the same socket
The socket represents a physical device, and the partition devices
should belong to the socket. The partition devices are only
different in function id in BDF. Use the BD part of the BDF to
identify a socket.
Change-Id: I5d355a6f5db02faa7555b760a36c7351b8d8d835
[ROCm/amdsmi commit: de7e74f7db]
이 커밋은 다음에 포함됨:
1 부모
a8138bfd5e
커밋
985ddbc5d5
2 파일이 변경됨
+13
-6
검색과 일치하는 파일 없음
@@ -99,7 +99,12 @@ class AMDSmiSystem {
|
||||
#endif
|
||||
private:
|
||||
AMDSmiSystem() : init_flag_(AMDSMI_INIT_AMD_GPUS) {}
|
||||
amdsmi_status_t get_gpu_bdf_by_index(uint32_t index, std::string& bdf);
|
||||
|
||||
/* The GPU socket id is used to identify the socket, so that the XCDs
|
||||
on the same physical device will be collected under the same socket.
|
||||
The BD part of the BDF is used as GPU socket to represent a phyiscal device.
|
||||
*/
|
||||
amdsmi_status_t get_gpu_socket_id(uint32_t index, std::string& socketid);
|
||||
amdsmi_status_t populate_amd_gpu_devices();
|
||||
uint64_t init_flag_;
|
||||
AMDSmiDrm drm_;
|
||||
|
||||
새 이슈에서 참조
사용자 차단