projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec4ce05
)
uploadConstant function for gpu
author
Anatoly Baksheev
<no@email>
Tue, 24 Aug 2010 09:15:45 +0000
(09:15 +0000)
committer
Anatoly Baksheev
<no@email>
Tue, 24 Aug 2010 09:15:45 +0000
(09:15 +0000)
modules/gpu/src/cuda/cuda_shared.hpp
patch
|
blob
|
history
diff --git
a/modules/gpu/src/cuda/cuda_shared.hpp
b/modules/gpu/src/cuda/cuda_shared.hpp
index 675b8dc7b94b8051ba040bb97bcfd9385ebf906a..73304f555a360d45bd4fd69d9c96b175770b6ee8 100644
(file)
--- a/
modules/gpu/src/cuda/cuda_shared.hpp
+++ b/
modules/gpu/src/cuda/cuda_shared.hpp
@@
-67,6
+67,10
@@
namespace cv
\r
extern "C" void convert_to(const DevMem2D& src, int sdepth, DevMem2D dst, int ddepth, int channels, double alpha, double beta, const cudaStream_t & stream = 0);
\r
}
\r
+
\r
+ template<class T>
\r
+ inline void uploadConstant(const char* name, const T& value) { cudaSafeCall( cudaMemcpyToSymbol(name, &value, sizeof(T)) ); }
\r
+
\r
}
\r
}
\r
\r