Click here to Skip to main content
15,891,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 4:33
mveRichard MacCutchan28-Mar-10 4:33 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 4:49
Krzysiaczek9928-Mar-10 4:49 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 4:53
mveRichard MacCutchan28-Mar-10 4:53 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 5:29
Krzysiaczek9928-Mar-10 5:29 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 5:59
mveRichard MacCutchan28-Mar-10 5:59 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 8:07
Krzysiaczek9928-Mar-10 8:07 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 11:34
mveRichard MacCutchan28-Mar-10 11:34 
GeneralRe: LNK2001 and LNK2019 errors [modified] Pin
Krzysiaczek9928-Mar-10 13:16
Krzysiaczek9928-Mar-10 13:16 
There is no external library, i Just posted the header of the function.

Obviously the bug is here i think, for all those functions LNK2019 occurs. But i dont know what this __entry means.
So it looks that because :Fire(cudaStream_t stream) has just 2 parameters and inside functions much more and they are not seen
from inside of Fire function so LNK2016 occurs. Do you agree with me ??

this cudaStream_t stream can not find anywhere how it is defined

Its not my code BTW.


void CudaMultipleBackPropagation::DeviceLayer::Fire(cudaStream_t stream) {
	if (isOutputLayer) {
		if(connections > MAX_THREADS_PER_BLOCK) {
			KernelFireOutputLayer(stream, dimNeuronsPatterns, inputsBlockSize, inputValues, weights.Pointer(), m, mOffset, neuronsWithSelectiveActivation, desOutputs, outputs.Pointer(), localGradient.Pointer(), rms, lgSpaceNet, inputsWithoutBias);
		} else {
			FireOutputLayer<<<patterns, dimInputsNeurons, sharedMemFire, stream>>>(inputValues, weights.Pointer(), m, mOffset, neuronsWithSelectiveActivation, desOutputs, outputs.Pointer(), localGradient.Pointer(), rms, lgSpaceNet);
		}
	} else {
		if(connections > MAX_THREADS_PER_BLOCK) {
			KernelFireLayer(stream, dimNeuronsPatterns, inputsBlockSize, inputValues, weights.Pointer(), m, mOffset, neuronsWithSelectiveActivation, outputs.Pointer(), inputsWithoutBias);
		} else {
			FireLayer<<<patterns, dimInputsNeurons, sharedMemFire, stream>>>(inputValues, weights.Pointer(), m, mOffset, neuronsWithSelectiveActivation, outputs.Pointer());
		}
	}
}



<pre>KERNEL FireLayer(CUDA_FLOATING_TYPE * inputs, CUDA_FLOATING_TYPE * weights, CUDA_FLOATING_TYPE * m, int mOffset, int totalNeuronsWithSelectiveActivation, CUDA_FLOATING_TYPE * outputs) {
    extern __shared__ CUDA_FLOATING_TYPE iw[];
    
	int connection = NEURON * NUM_INPUTS_INCLUDING_BIAS + INPUT;

	SumInputWeight(connection, inputs, weights);
    
    /*******
     For each layer neuron, calculate its output. Results for neuron n will be held on outputs[].
     Note that outputs[] will contain the layer neuron outputs for all the patterns.
    *******/
	if (INPUT == 0) {
		int n = PATTERN * NUM_NEURONS + NEURON;

		CUDA_FLOATING_TYPE output = CUDA_SIGMOID(iw[THREAD_ID]);
		if (m != NULL) output *= m[PATTERN * totalNeuronsWithSelectiveActivation + NEURON + mOffset];
		outputs[n] = output;
	}
}

</pre>
<div class="signature"><div class="modified">modified on Sunday, March 28, 2010 7:27 PM</div></div>

GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 23:03
mveRichard MacCutchan28-Mar-10 23:03 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 23:36
Krzysiaczek9928-Mar-10 23:36 
AnswerRe: LNK2001 and LNK2019 errors Pin
T210228-Mar-10 22:03
T210228-Mar-10 22:03 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 23:24
Krzysiaczek9928-Mar-10 23:24 
QuestionVB6 Project to VC6 Pin
MikeRWinter27-Mar-10 12:06
MikeRWinter27-Mar-10 12:06 
AnswerRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 13:07
professionalRichard Andrew x6427-Mar-10 13:07 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 13:49
MikeRWinter27-Mar-10 13:49 
GeneralRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 13:53
professionalRichard Andrew x6427-Mar-10 13:53 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 14:02
MikeRWinter27-Mar-10 14:02 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 15:41
MikeRWinter27-Mar-10 15:41 
GeneralRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 16:23
professionalRichard Andrew x6427-Mar-10 16:23 
QuestionReadFile (reading COM port) returns are different in debug – stepping thru and run. [modified] SOLVED Pin
Vaclav_27-Mar-10 9:54
Vaclav_27-Mar-10 9:54 
AnswerRe: ReadFile (reading COM port) returns are different in debug – stepping thru and run. Pin
CPallini27-Mar-10 11:28
mveCPallini27-Mar-10 11:28 
GeneralRe: ReadFile (reading COM port) returns are different in debug – stepping thru and run. Pin
Vaclav_27-Mar-10 15:53
Vaclav_27-Mar-10 15:53 
QuestionHow to work sqlite in vc++ Pin
kirancgi27-Mar-10 4:51
kirancgi27-Mar-10 4:51 
AnswerRe: How to work sqlite in vc++ Pin
loyal ginger27-Mar-10 5:01
loyal ginger27-Mar-10 5:01 
GeneralRe: How to work sqlite in vc++ Pin
kirancgi28-Mar-10 2:24
kirancgi28-Mar-10 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.