Hallo,
I am currently developing a code for cuda, which is quite simple. It consists of kernel call with input parameters, some declarations and allocations inside the kernel with two subsequent while loops inside it. Inside these two while loops a device function is launched, which as well posses some declarations and allocations and contain one another while loop inside it (minimal code below).
The problem is, that during compilation nvcc gives me a warning:
nvlink warning : Stack size for entry function ‘_Z11BlockKernelPK10cuLoopDataPK10cuBiphotonP9cuCrystalPK8cuPhotonS9_S9_P10cuMatrix3dIdESC_iidPK8cuMatrixIdE’ cannot be statically determined.
Can someone please explain me what does this warning mean to me a how can I get rid of it?
Thanks a lot,
Dalibor
Kernel (inptPar1, ..., inptParN){
... declarations, allocations, initializations
while(cond1){
while(cond2){
threadFunction(some parameters from kernel parameters list and addtional parameters declared, allocated and intialized in Kernel);
}
}
}
threadFunction(some parameters from kernel parameters list and parameters declared, allocated and intialized in Kernel){
... declarations, allocations, initializations
while(cond3){
code with some if statemets, allocations and freeing of device memory
}
}