// on GPU side // on CPU side float * h_noyauConvof = new float[(2*r+1)*(2*r+1)] ; for (int i=0; i<(2*r+1)*(2*r+1); i++) h_noyauConvof[i]= 1.0/((2*r+1)*(2*r+1)) ; cudaMemcpyToSymbol( masque, h_noyauConvof, (2*r+1)*(2*r+1)*sizeof(float), 0) ;