Commit c00e9cfa authored by Andrey Morozov's avatar Andrey Morozov

fixed problem with compiled on linux

parent c4ef619a
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
#include <cvconfig.h> #include <cvconfig.h>
#endif #endif
#include <iostream>
#include "opencv2/gpu/gpu.hpp" #include "opencv2/gpu/gpu.hpp"
#include "opencv2/gpu/gpumat.hpp" #include "opencv2/gpu/gpumat.hpp"
...@@ -79,13 +81,16 @@ namespace cv ...@@ -79,13 +81,16 @@ namespace cv
{ {
if( cudaSuccess != err) if( cudaSuccess != err)
{ {
fprintf(stderr, "%s(%i) : cudaSafeCall() Runtime API error : %s.\n", file, line, cudaGetErrorString(err) ); std::cerr << file << "(" << line << ") : cudaSafeCall() Runtime API error : " << cudaGetErrorString(err) << "\n";
exit(-1); exit(-1);
} }
} }
template<class T> template<class T>
inline DevMem2D_<T> getDevMem(const GpuMat& mat) { return DevMem2D_<T>(m.rows, m.cols, m.data, m.step); } inline DevMem2D_<T> getDevMem(const GpuMat& mat)
{
return DevMem2D_<T>(mat.rows, mat.cols, mat.data, mat.step);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment