fixed for Kepler
authorAnatoly Baksheev <no@email>
Thu, 3 May 2012 10:23:23 +0000 (10:23 +0000)
committerAnatoly Baksheev <no@email>
Thu, 3 May 2012 10:23:23 +0000 (10:23 +0000)
modules/core/src/gpumat.cpp

index cb58f19..bf128fb 100644 (file)
@@ -320,7 +320,8 @@ namespace
     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
@@ -336,7 +337,7 @@ namespace
             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
@@ -760,7 +761,7 @@ namespace
 \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