e39ad34d9c
Thunk keeps an internal cache of system topology that can be used to speed up subsequent calls to hsaKmtAcquireSystemProperties(). This cache is cleared by calling hsaKmtReleaseSystemProperties() at the beginning of BuildTopology(). hsaKmtRuntimeEnable() also calls hsaKmtAcquireSystemProperties() inside Thunk. Move call to hsaKmtRuntimeEnable() after BuildTopology() so that we can re-use Thunks internal cache. Parsing of of topology can take ~150 ms on systems for large number of nodes. Change-Id: I741709d49d67d244f5fbd707fe8f01ab923bb153