pointers within the kernel

hi,

i’m very new to CUDA.

#1
“lenj.cu(28): warning: variable “RRJK” was declared but never referenced”
can u just help me know what the above means?
RRJK is a variable with double precision.

#2
is it possible to define pointers within the kernel, without being defined in the host?
how to do it?

#3
suppose
NA= blockDim.x*blockIdx.x + threadIdx.x
NLJ = ND05[NL]*KK
so will NLJ be always be defined by the thread id?
or is it that we’ll have to define NLJ as an array?

hi,

i’m very new to CUDA.

#1
“lenj.cu(28): warning: variable “RRJK” was declared but never referenced”
can u just help me know what the above means?
RRJK is a variable with double precision.

#2
is it possible to define pointers within the kernel, without being defined in the host?
how to do it?

#3
suppose
NA= blockDim.x*blockIdx.x + threadIdx.x
NLJ = ND05[NL]*KK
so will NLJ be always be defined by the thread id?
or is it that we’ll have to define NLJ as an array?