include/hip/hip_deprecated.h Source File

include/hip/hip_deprecated.h Source File#

HIP Runtime API Reference: include/hip/hip_deprecated.h Source File
hip_deprecated.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Advanced Micro Devices, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 */
21
22#pragma once
23
24// This file will add older hip functions used in the versioning system
25// Find the deprecated functions and structs in hip_device.cpp
26
27// This struct is also kept in hip_device.cpp
28typedef struct hipDeviceProp_tR0000 {
29 char name[256];
36 int maxGridSize[3];
41 int major;
44 int minor;
64 int gcnArch;
65 char gcnArchName[256];
72 int maxTexture2D[2];
73 int maxTexture3D[3];
75 unsigned int* hdpMemFlushCntl;
76 unsigned int* hdpRegFlushCntl;
77 size_t memPitch;
108
109
110#ifdef __cplusplus
111extern "C" {
112#endif
113
116
117#ifdef __cplusplus
118}
119#endif
enum __HIP_NODISCARD hipError_t hipError_t
Definition hip_runtime_api.h:305
hipError_t hipChooseDeviceR0000(int *device, const hipDeviceProp_tR0000 *prop)
hipError_t hipGetDevicePropertiesR0000(hipDeviceProp_tR0000 *prop, int device)
Definition hip_runtime_api.h:65
Definition hip_deprecated.h:28
int pageableMemoryAccessUsesHostPageTables
Definition hip_deprecated.h:105
int memoryBusWidth
Global memory bus width in bits.
Definition hip_deprecated.h:39
int maxGridSize[3]
Max grid dimensions (XYZ).
Definition hip_deprecated.h:36
int maxTexture1DLinear
Maximum size for 1D textures bound to linear memory.
Definition hip_deprecated.h:70
int cooperativeLaunch
HIP device supports cooperative launch.
Definition hip_deprecated.h:67
int cooperativeMultiDeviceUnmatchedSharedMem
Definition hip_deprecated.h:93
size_t totalConstMem
Size of shared memory region (in bytes).
Definition hip_deprecated.h:40
int memoryClockRate
Max global memory clock frequency in khz.
Definition hip_deprecated.h:38
char gcnArchName[256]
AMD GCN Arch Name.
Definition hip_deprecated.h:65
int major
Definition hip_deprecated.h:41
int concurrentKernels
Device can possibly execute multiple kernels concurrently.
Definition hip_deprecated.h:57
int clockRate
Max clock frequency of the multiProcessors in khz.
Definition hip_deprecated.h:37
unsigned int * hdpMemFlushCntl
Addres of HDP_MEM_COHERENCY_FLUSH_CNTL register.
Definition hip_deprecated.h:75
size_t memPitch
Maximum pitch in bytes allowed by memory copies.
Definition hip_deprecated.h:77
unsigned int * hdpRegFlushCntl
Addres of HDP_REG_COHERENCY_FLUSH_CNTL register.
Definition hip_deprecated.h:76
int maxTexture2D[2]
Maximum dimensions (width, height) of 2D images, in image elements.
Definition hip_deprecated.h:72
int maxTexture3D[3]
Definition hip_deprecated.h:73
int ECCEnabled
Device has ECC support enabled.
Definition hip_deprecated.h:82
int warpSize
Warp size.
Definition hip_deprecated.h:33
int maxThreadsPerMultiProcessor
Maximum resident threads per multi-processor.
Definition hip_deprecated.h:52
int canMapHostMemory
Check whether HIP can map host memory.
Definition hip_deprecated.h:63
int concurrentManagedAccess
Definition hip_deprecated.h:101
int minor
Definition hip_deprecated.h:44
int pciBusID
PCI Bus ID.
Definition hip_deprecated.h:59
int pageableMemoryAccess
Definition hip_deprecated.h:103
char name[256]
Device name.
Definition hip_deprecated.h:29
int managedMemory
Device supports allocating managed memory on this system.
Definition hip_deprecated.h:98
int directManagedMemAccessFromHost
Definition hip_deprecated.h:99
size_t sharedMemPerBlock
Size of shared memory region (in bytes).
Definition hip_deprecated.h:31
int cooperativeMultiDeviceUnmatchedGridDim
Definition hip_deprecated.h:87
int computeMode
Compute mode.
Definition hip_deprecated.h:53
hipDeviceArch_t arch
Architectural feature flags. New for HIP.
Definition hip_deprecated.h:56
int kernelExecTimeoutEnabled
Run time limit for kernels executed on the device.
Definition hip_deprecated.h:81
int multiProcessorCount
Definition hip_deprecated.h:47
size_t textureAlignment
Alignment requirement for textures.
Definition hip_deprecated.h:78
size_t maxSharedMemoryPerMultiProcessor
Maximum Shared Memory Per Multiprocessor.
Definition hip_deprecated.h:61
int cooperativeMultiDeviceUnmatchedFunc
Definition hip_deprecated.h:84
int maxThreadsPerBlock
Max work items per work group or workgroup max size.
Definition hip_deprecated.h:34
int tccDriver
1:If device is Tesla device using TCC driver, else 0
Definition hip_deprecated.h:83
int gcnArch
DEPRECATED: use gcnArchName instead.
Definition hip_deprecated.h:64
int maxTexture1D
Maximum number of elements in 1D images.
Definition hip_deprecated.h:71
int isMultiGpuBoard
1 if device is on a multi-GPU board, 0 if not.
Definition hip_deprecated.h:62
int pciDomainID
PCI Domain ID.
Definition hip_deprecated.h:58
int maxThreadsDim[3]
Max number of threads in each dimension (XYZ) of a block.
Definition hip_deprecated.h:35
int l2CacheSize
L2 cache size.
Definition hip_deprecated.h:51
int regsPerBlock
Registers per block.
Definition hip_deprecated.h:32
int integrated
APU vs dGPU.
Definition hip_deprecated.h:66
size_t texturePitchAlignment
Definition hip_deprecated.h:79
int clockInstructionRate
Definition hip_deprecated.h:54
int asicRevision
Revision of the GPU in this device.
Definition hip_deprecated.h:97
size_t totalGlobalMem
Size of global memory region (in bytes).
Definition hip_deprecated.h:30
int cooperativeMultiDeviceLaunch
Definition hip_deprecated.h:68
int pciDeviceID
PCI Device ID.
Definition hip_deprecated.h:60
int cooperativeMultiDeviceUnmatchedBlockDim
Definition hip_deprecated.h:90
int isLargeBar
1: if it is a large PCI bar device, else 0
Definition hip_deprecated.h:96