Xiaodong Wang b276ae6c2b Fix ASAN issue in DiscoverAmdgpuDevices
I ran a test that exercised this code in dev mode and ASAN found a memory access issue due to the iterator returned by lower_bound being dereferenced unconditionally.  I believe the right fix is to check if the iterator is within the map and if not go to the else branch

Change-Id: I34fdce634791a09a89eee76c8b2b64a9607d57f9
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 2066872297]
2024-09-04 10:14:10 -04:00
S
Açıklama
Hiçbir açıklama sağlanmadı
282 MiB
Dil
C++ 67.5%
C 20.6%
Python 6.6%
CMake 3.4%
Shell 0.6%
Diğer 1.1%