I meet the this error when compile CUDA.
error LNK2005: "int __cdecl XXXX" (?XXXXX@@YAHXZ) already defined in XXX.cu.obj
I solved error from the web page. -> http://stackoverflow.com/questions/5295503/cuda-lnk2005-error-on-device-function-used-in-header-file
In my case, I add "inline" keyword front of cuda function name.
ex)
__device__ void matrix_set_identity(GPU_Matrix *A)
->
inline __device__ void matrix_set_identity(GPU_Matrix *A)
Thank you.
8/11/2014
Subscribe to:
Post Comments (Atom)
-
Created Date : 2011.10 Language : C/C++ Tool : Microsoft Visual C++ 2008 Library & Utilized : OpenCV 2.3 Reference : SIFT referenc...
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
This article explain how to access the thread index when you make block and thread with two dimensions. please refer to this page about me...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
OpenCV has AdaBoost algorithm function. And gpu version also is provided. For using detection, we prepare the trained xml file. Although...
-
In past, I wrote an articel about YUV 444, 422, 411 introduction and yuv rgb converting example code. refer to this page -> http://feel...
-
load mri D = double(squeeze(D)); h = slice(D, [], [], 1:size(D,3)); set(h, 'EdgeColor','none', 'FaceColor','...
-
This is GPU version of this page -> http://feelmare.blogspot.kr/2013/12/finding-largest-subset-images-that-is.html Please refer detail ...
-
This is GPU version of this post. http://feelmare.blogspot.kr/2014/04/opencv-study-calcopticalflowfarneback.html In the GPU mode, the ret...
-
Ceemple is good tool for easy start opencv in vs 2013. If your development environment is window, vs 2013 CUDA, This is easy way that yo...
No comments:
Post a Comment