[HIP] Add tccDriver info in hipDeviceProp

Fixes #1433.

[ROCm/hip commit: 0fa42af08c]
这个提交包含在:
Sarbojit2019 编写, Maneesh Gupta 于 2019-09-26 13:53:33 +05:30 提交
1 父节点 9464185c27
当前提交 7f7a5a3712
3 个文件已更改
+4

没有与搜索条件相匹配的文件

@@ -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);
}
+1
查看文件
@@ -927,6 +927,7 @@ hipError_t ihipDevice_t::initProperties(hipDeviceProp_t* prop) {
else
prop->ECCEnabled = 0; //Device has ECC support disabled
prop->tccDriver = 0; // valid only for nvcc platform
return e;
}