size_ttotalGlobalMem;///< Size of global memory region (in bytes).
size_tsharedMemPerBlock;///< Size of shared memory region (in bytes).
intregsPerBlock;///< Registers per block.
intwarpSize;///< Warp size.
intmaxThreadsPerBlock;///< Max work items per work group or workgroup max size.
intmaxThreadsDim[3];///< Max number of threads in each dimension (XYZ) of a block.
intmaxGridSize[3];///< Max grid dimensions (XYZ).
intclockRate;///< Max clock frequency of the multiProcessors, in khz.
size_ttotalConstMem;///< Size of shared memory region (in bytes).
intmajor;///< Major compute capability. On HCC, this is an approximation and features may differ from CUDA CC. See the arch feature flags for portable ways to query feature caps.
intminor;///< Minor compute capability. On HCC, this is an approximation and features may differ from CUDA CC. See the arch feature flags for portable ways to query feature caps.
intmultiProcessorCount;///< Number of multi-processors (compute units).
intl2CacheSize;///< L2 cache size.
intmaxThreadsPerMultiProcessor;///< Maximum resident threads per multi-processor.
intcomputeMode;///< Compute mode.
intclockInstructionRate;///< Frequency in khz of the timer used by the device-side "clock*" instructions. New for HIP.
hipDeviceArch_tarch;///< Architectural feature flags. New for HIP.
intconcurrentKernels;///< Device can possibly execute multiple kernels concurrently.
intpciBusID;///< PCI Bus ID.
intpciDeviceID;///< PCI Device ID.
size_tmaxSharedMemoryPerMultiProcessor;///< Maximum Shared Memory Per Multiprocessor.
,hipErrorOutOfResources///< Out of resources error.
,hipErrorInvalidValue///< One or more of the parameters passed to the API call is NULL or not in an acceptable range.
,hipErrorInvalidResourceHandle///< Resource handle (hipEvent_t or hipStream_t) invalid.
,hipErrorInvalidDevice///< DeviceID must be in range 0...#compute-devices.
,hipErrorNoDevice///< Call to hipGetDeviceCount returned 0 devices
,hipErrorNotReady///< Indicates that asynchronous operations enqueued earlier are not ready. This is not actually an error, but is used to distinguish from hipSuccess (which indicates completion). APIs that return this error include hipEventQuery and hipStreamQuery.
,hipErrorUnknown///< Unknown error.
,hipErrorTbd///< Marker that more error codes are needed.
hipDeviceAttributeMaxThreadsPerBlock,///< Maximum number of threads per block.
hipDeviceAttributeMaxBlockDimX,///< Maximum x-dimension of a block.
hipDeviceAttributeMaxBlockDimY,///< Maximum y-dimension of a block.
hipDeviceAttributeMaxBlockDimZ,///< Maximum z-dimension of a block.
hipDeviceAttributeMaxGridDimX,///< Maximum x-dimension of a grid.
hipDeviceAttributeMaxGridDimY,///< Maximum y-dimension of a grid.
hipDeviceAttributeMaxGridDimZ,///< Maximum z-dimension of a grid.
hipDeviceAttributeMaxSharedMemoryPerBlock,///< Maximum shared memory available per block in bytes.
hipDeviceAttributeTotalConstantMemory,///< Constant memory size in bytes.
hipDeviceAttributeWarpSize,///< Warp size in threads.
hipDeviceAttributeMaxRegistersPerBlock,///< Maximum number of 32-bit registers available to a thread block. This number is shared by all thread blocks simultaneously resident on a multiprocessor.
hipDeviceAttributeClockRate,///< Peak clock frequency in kilohertz.
hipDeviceAttributeMultiprocessorCount,///< Number of multiprocessors on the device.
hipDeviceAttributeComputeMode,///< Compute mode that device is currently in.
hipDeviceAttributeL2CacheSize,///< Size of L2 cache in bytes. 0 if the device doesn't have L2 cache.
hipDeviceAttributeMaxThreadsPerMultiProcessor,///< Maximum resident threads per multiprocessor.
hipDeviceAttributeComputeCapabilityMajor,///< Major compute capability version number.
hipDeviceAttributeComputeCapabilityMinor,///< Minor compute capability version number.