kfdtest: Add GetGfxVersion to KFDTestUtil
Required to derive LLVM AMDGPU target ASIC (MCPU).
Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: If8f139b3858c9bf42feba23ae9210e14625dc08b
[ROCm/ROCR-Runtime commit: 2f73db8fb0]
This commit is contained in:
committed by
Harish Kasiviswanathan
parent
d916fe0129
commit
171f1e5a40
@@ -231,6 +231,12 @@ bool isTonga(const HsaNodeProperties *props) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const uint32_t GetGfxVersion(const HsaNodeProperties *props) {
|
||||
return ((props->EngineId.ui32.Major << 16) |
|
||||
(props->EngineId.ui32.Minor << 8) |
|
||||
(props->EngineId.ui32.Stepping));
|
||||
}
|
||||
|
||||
HSAuint64 GetSystemTickCountInMicroSec() {
|
||||
struct timeval t;
|
||||
gettimeofday(&t, 0);
|
||||
|
||||
Reference in New Issue
Block a user