fixed problem with compiled on linux
This commit is contained in:
parent
c4ef619ac5
commit
c00e9cfa27
@ -50,6 +50,8 @@
|
||||
#include <cvconfig.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "opencv2/gpu/gpu.hpp"
|
||||
#include "opencv2/gpu/gpumat.hpp"
|
||||
|
||||
@ -79,13 +81,16 @@ namespace cv
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user