Move Images code to hsa-runtime folder

Change-Id: I53c1845d985ac3e9708d952865009c0021f3bb4f


[ROCm/ROCR-Runtime commit: 7e3db20826]
This commit is contained in:
Sean Keely
2020-04-30 00:18:36 -05:00
parent bd5ef0eff8
commit 1fc7f2dec7
70 changed files with 73713 additions and 47 deletions
@@ -0,0 +1,39 @@
// File: device_info.h
// Project: HSA
//
// Description: Interface file for Api to query HSA System - Number of
// compute nodes, devices, etc.
//
// HsaGetAsicFamilyType()
// The private Api is provided to query the Id of Asic
// family of the device.
//
// Copyright (c) 2013-2013 Advanced Micro Devices, Inc. (unpublished)
//
// All rights reserved. This notice is intended as a precaution against
// inadvertent publication and does not imply publication or any waiver
// of confidentiality. The year included in the foregoing notice is the
// year of creation of the work.
//
#ifndef HSA_RUNTIME_CORE_INC_DEVICE_INFO_H_
#define HSA_RUNTIME_CORE_INC_DEVICE_INFO_H_
#include "stdint.h"
#include "inc/hsa.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
uint32_t MajorVerFromDevID(uint32_t dev_id);
uint32_t MinorVerFromDevID(uint32_t dev_id);
uint32_t StepFromDevID(uint32_t dev_id);
uint32_t DevIDToAddrLibFamily(uint32_t dev_id);
hsa_status_t GetGPUAsicID(hsa_agent_t agent, uint32_t *chip_id);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // HSA_RUNTIME_CORE_INC_DEVICE_INFO_H_