template <class T> void getCudaAttribute(T *attribute, CUdevice_attribute device_attribute, int device)\r
{\r
*attribute = T();\r
- CUresult error = CUDA_SUCCESS;// = cuDeviceGetAttribute( attribute, device_attribute, device ); why link erros under ubuntu??\r
+ //CUresult error = CUDA_SUCCESS;// = cuDeviceGetAttribute( attribute, device_attribute, device ); why link erros under ubuntu??\r
+ CUresult error = cuDeviceGetAttribute( attribute, device_attribute, device );\r
if( CUDA_SUCCESS == error )\r
return;\r
\r
int Cores;\r
} SMtoCores;\r
\r
- SMtoCores gpuArchCoresPerSM[] = { { 0x10, 8 }, { 0x11, 8 }, { 0x12, 8 }, { 0x13, 8 }, { 0x20, 32 }, { 0x21, 48 }, { -1, -1 } };\r
+ SMtoCores gpuArchCoresPerSM[] = { { 0x10, 8 }, { 0x11, 8 }, { 0x12, 8 }, { 0x13, 8 }, { 0x20, 32 }, { 0x21, 48 }, {0x30, 192}, { -1, -1 } };\r
\r
int index = 0;\r
while (gpuArchCoresPerSM[index].SM != -1)\r
\r
namespace cv { namespace gpu { namespace device\r
{\r
- void copyToWithMask_gpu(DevMem2Db src, DevMem2Db dst, int elemSize1, int cn, DevMem2Db mask, bool colorMask, cudaStream_t stream);\r
+ void copyToWithMask_gpu(DevMem2Db src, DevMem2Db dst, size_t elemSize1, int cn, DevMem2Db mask, bool colorMask, cudaStream_t stream);\r
\r
template <typename T>\r
void set_to_gpu(DevMem2Db mat, const T* scalar, int channels, cudaStream_t stream);\r