Fix assert failure for CPU only node

hsa_gfxip_table lists only (supported) GPUs. So assert fail only when a
non-supported GPU is detected.

Change-Id: I6207dc7cd55860c8b3348b6a4ca6102131975722


[ROCm/ROCR-Runtime commit: 758824db17]
이 커밋은 다음에 포함됨:
Harish Kasiviswanathan가 2015-10-08 11:52:59 -04:00를 커밋했습니다
1 부모 ee891bed05
커밋 72cc7c2234
1 파일이 변경됨
+2 -1
+2 -1
파일 보기
@@ -396,7 +396,8 @@ topology_sysfs_get_node_props(uint32_t node_id, HsaNodeProperties *props, uint32
props->EngineId.ui32.Minor = hsa_gfxip->minor;
props->EngineId.ui32.Stepping = hsa_gfxip->stepping;
}
assert(props->EngineId.ui32.Major);
if (props->NumFComputeCores)
assert(props->EngineId.ui32.Major);
//TODO: error handler when Device ID lookup fails
err2: