[HIP] Add tccDriver info in hipDeviceProp

Fixes #1433.

[ROCm/clr commit: db4c0c0811]
This commit is contained in:
Sarbojit2019
2019-09-26 13:53:34 +05:30
committed by Maneesh Gupta
parent 916311410b
commit 3ef2e123bb
3 changed files with 4 additions and 0 deletions
@@ -126,6 +126,8 @@ typedef struct hipDeviceProp_t {
size_t textureAlignment; ///<Alignment requirement for textures
int kernelExecTimeoutEnabled; ///<Run time limit for kernels executed on the device
int ECCEnabled; ///<Device has ECC support enabled
int tccDriver; ///< 1:If device is Tesla device using TCC driver, else 0
} hipDeviceProp_t;
@@ -846,6 +846,7 @@ inline static hipError_t hipGetDeviceProperties(hipDeviceProp_t* p_prop, int dev
p_prop->textureAlignment = cdprop.textureAlignment;
p_prop->kernelExecTimeoutEnabled = cdprop.kernelExecTimeoutEnabled;
p_prop->ECCEnabled = cdprop.ECCEnabled;
p_prop->tccDriver = cdprop.tccDriver;
return hipCUDAErrorTohipError(cerror);
}