1 //===--- amdgpu/impl/atmi.h --------------------------------------- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 #ifndef INCLUDE_ATMI_H_ 9 #define INCLUDE_ATMI_H_ 10 11 #define ROCM_VERSION_MAJOR 3 12 #define ROCM_VERSION_MINOR 2 13 14 /** \defgroup enumerations Enumerated Types 15 * @{ 16 */ 17 18 /** 19 * @brief Device Types. 20 */ 21 typedef enum atmi_devtype_s { 22 ATMI_DEVTYPE_CPU = 0x0001, 23 ATMI_DEVTYPE_iGPU = 0x0010, // Integrated GPU 24 ATMI_DEVTYPE_dGPU = 0x0100, // Discrete GPU 25 ATMI_DEVTYPE_GPU = ATMI_DEVTYPE_iGPU | ATMI_DEVTYPE_dGPU, // Any GPU 26 ATMI_DEVTYPE_ALL = 0x111 // Union of all device types 27 } atmi_devtype_t; 28 29 /** 30 * @brief Memory Access Type. 31 */ 32 typedef enum atmi_memtype_s { 33 ATMI_MEMTYPE_FINE_GRAINED = 0, 34 ATMI_MEMTYPE_COARSE_GRAINED = 1, 35 ATMI_MEMTYPE_ANY 36 } atmi_memtype_t; 37 38 /** @} */ 39 #endif // INCLUDE_ATMI_H_ 40