33 #include <hip_common.h>
37 unsigned hasGlobalInt32Atomics : 1;
38 unsigned hasGlobalFloatAtomicExch : 1;
39 unsigned hasSharedInt32Atomics : 1;
40 unsigned hasSharedFloatAtomicExch : 1;
41 unsigned hasFloatAtomicAdd : 1;
44 unsigned hasGlobalInt64Atomics : 1;
45 unsigned hasSharedInt64Atomics : 1;
48 unsigned hasDoubles : 1;
51 unsigned hasWarpVote : 1;
52 unsigned hasWarpBallot : 1;
53 unsigned hasWarpShuffle : 1;
54 unsigned hasFunnelShift : 1;
57 unsigned hasThreadFenceSystem : 1;
58 unsigned hasSyncThreadsExt : 1;
61 unsigned hasSurfaceFuncs : 1;
62 unsigned has3dGrid : 1;
63 unsigned hasDynamicParallelism : 1;
164 #if defined(__HIP_PLATFORM_HCC__) and not defined (__HIP_PLATFORM_NVCC__)
166 #elif defined(__HIP_PLATFORM_NVCC__) and not defined (__HIP_PLATFORM_HCC__)
167 #include "nvcc_detail/hip_runtime_api.h"
169 #error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
Call to hipGetDeviceCount returned 0 devices.
Definition: hip_runtime_api.h:123
size_t totalConstMem
Size of shared memory region (in bytes).
Definition: hip_runtime_api.h:85
Maximum Shared Memory Per Multiprocessor.
Definition: hip_runtime_api.h:157
Maximum x-dimension of a block.
Definition: hip_runtime_api.h:136
Maximum x-dimension of a grid.
Definition: hip_runtime_api.h:139
Unknown symbol.
Definition: hip_runtime_api.h:118
Successful completion.
Definition: hip_runtime_api.h:115
int minor
Minor compute capability. On HCC, this is an approximation and features may differ from CUDA CC...
Definition: hip_runtime_api.h:87
Maximum number of 32-bit registers available to a thread block. This number is shared by all thread b...
Definition: hip_runtime_api.h:145
int regsPerBlock
Registers per block.
Definition: hip_runtime_api.h:78
Size of L2 cache in bytes. 0 if the device doesn't have L2 cache.
Definition: hip_runtime_api.h:150
DeviceID must be in range 0...#compute-devices.
Definition: hip_runtime_api.h:122
Peak clock frequency in kilohertz.
Definition: hip_runtime_api.h:146
int clockRate
Max clock frequency of the multiProcessors in khz.
Definition: hip_runtime_api.h:83
Maximum z-dimension of a grid.
Definition: hip_runtime_api.h:141
Out of resources error.
Definition: hip_runtime_api.h:119
Minor compute capability version number.
Definition: hip_runtime_api.h:153
Maximum shared memory available per block in bytes.
Definition: hip_runtime_api.h:142
int pciBusID
PCI Bus ID.
Definition: hip_runtime_api.h:95
Maximum y-dimension of a grid.
Definition: hip_runtime_api.h:140
Unknown error.
Definition: hip_runtime_api.h:125
int maxThreadsPerBlock
Max work items per work group or workgroup max size.
Definition: hip_runtime_api.h:80
Maximum y-dimension of a block.
Definition: hip_runtime_api.h:137
size_t sharedMemPerBlock
Size of shared memory region (in bytes).
Definition: hip_runtime_api.h:77
int maxThreadsPerMultiProcessor
Maximum resident threads per multi-processor.
Definition: hip_runtime_api.h:90
int l2CacheSize
L2 cache size.
Definition: hip_runtime_api.h:89
hipDeviceAttribute_t
Definition: hip_runtime_api.h:134
Major compute capability version number.
Definition: hip_runtime_api.h:152
Maximum number of threads per block.
Definition: hip_runtime_api.h:135
Resource handle (hipEvent_t or hipStream_t) invalid.
Definition: hip_runtime_api.h:121
Memory allocation error.
Definition: hip_runtime_api.h:116
hipDeviceArch_t arch
Architectural feature flags. New for HIP.
Definition: hip_runtime_api.h:93
int maxGridSize[3]
Max grid dimensions (XYZ).
Definition: hip_runtime_api.h:82
int computeMode
Compute mode.
Definition: hip_runtime_api.h:91
Maximum z-dimension of a block.
Definition: hip_runtime_api.h:138
PCI Bus ID.
Definition: hip_runtime_api.h:155
hipError_t hipMallocHost(void **ptr, size_t size)
Allocate pinned host memory.
Definition: hip_hcc.cpp:1372
Marker that more error codes are needed.
Definition: hip_runtime_api.h:126
Warp size in threads.
Definition: hip_runtime_api.h:144
int major
Major compute capability. On HCC, this is an approximation and features may differ from CUDA CC...
Definition: hip_runtime_api.h:86
Peak memory clock frequency in kilohertz.
Definition: hip_runtime_api.h:147
Maximum resident threads per multiprocessor.
Definition: hip_runtime_api.h:151
hipError_t
Definition: hip_runtime_api.h:114
int clockInstructionRate
Frequency in khz of the timer used by the device-side "clock*" instructions. New for HIP...
Definition: hip_runtime_api.h:92
Constant memory size in bytes.
Definition: hip_runtime_api.h:143
Memory free error.
Definition: hip_runtime_api.h:117
int warpSize
Warp size.
Definition: hip_runtime_api.h:79
int concurrentKernels
Device can possibly execute multiple kernels concurrently.
Definition: hip_runtime_api.h:94
size_t totalGlobalMem
Size of global memory region (in bytes).
Definition: hip_runtime_api.h:76
hipError_t hipMalloc(void **ptr, size_t size)
Allocate memory on the default accelerator.
Definition: hip_hcc.cpp:1351
Compute mode that device is currently in.
Definition: hip_runtime_api.h:149
PCI Device ID.
Definition: hip_runtime_api.h:156
int maxThreadsDim[3]
Max number of threads in each dimension (XYZ) of a block.
Definition: hip_runtime_api.h:81
Number of multiprocessors on the device.
Definition: hip_runtime_api.h:148
One or more of the parameters passed to the API call is NULL or not in an acceptable range...
Definition: hip_runtime_api.h:120
Definition: hip_runtime_api.h:74
Indicates that asynchronous operations enqueued earlier are not ready. This is not actually an error...
Definition: hip_runtime_api.h:124
size_t maxSharedMemoryPerMultiProcessor
Maximum Shared Memory Per Multiprocessor.
Definition: hip_runtime_api.h:97
int pciDeviceID
PCI Device ID.
Definition: hip_runtime_api.h:96
char name[256]
Device name.
Definition: hip_runtime_api.h:75
Definition: hip_runtime_api.h:35
Contains C function APIs for HIP runtime. This file does not use any HCC builtin or special language ...
int memoryClockRate
Max memory clock frequency in khz.
Definition: hip_runtime_api.h:84
Device can possibly execute multiple kernels concurrently.
Definition: hip_runtime_api.h:154
int multiProcessorCount
Number of multi-processors (compute units).
Definition: hip_runtime_api.h:88