error in the clBuildProgram

i , I’m a beginner in OpenCL i got this error message in the build fucntion

Code:

ptxas application ptx input, line 858; error   : Label expected for argument 0 of instruction 'call'

ptxas application ptx input, line 858; error   : Call target not recognized

ptxas application ptx input, line 858; error   : Function 'RGB' not declared in this scope

ptxas application ptx input, line 858; error   : Call target not recognized

ptxas application ptx input, line 1722; error   : Label expected for argument 0 of instruction 'call'

ptxas application ptx input, line 1722; error   : Call target not recognized

ptxas application ptx input, line 1722; error   : Function 'RGB' not declared in this scope

ptxas application ptx input, line 1722; error   : Call target not recognized

ptxas application ptx input, line 859; error   : Unknown symbol 'RGB'

ptxas application ptx input, line 1723; error   : Unknown symbol 'RGB'

ptxas fatal   : Ptx assembly aborted due to errors

error   : Ptx compilation failed: gpu='sm_11', device code='cuModuleLoadDataEx_4'

: Considering profile 'compute_11' for gpu='sm_11' in 'cuModuleLoadDataEx_4'

: Retrieving binary for 'cuModuleLoadDataEx_4', for gpu='sm_11', usage mode='  '

: Considering profile 'compute_11' for gpu='sm_11' in 'cuModuleLoadDataEx_4'

: Control flags for 'cuModuleLoadDataEx_4' disable search path

: Ptx binary found for 'cuModuleLoadDataEx_4', architecture='compute_11'

: Ptx compilation for 'cuModuleLoadDataEx_4', for gpu='sm_11', ocg options='  '

my kernels are as follow

__kernel void

render_vr_cuda_kernel(__global   uint *_image_result, tdst_3d_volume _3d_volume, tdstMatrix _matrix, tdstPlan _plans,int nbr_lignes,__global uchar4 * ColorTex, __global float * OpacityTex,__read_only image3d_t tex, sampler_t samplerA)

{			 //unsigned int i = get_global_id(0);

			 

	uint i =  get_global_id(0);

   uint j =  get_global_id(1) + nbr_lignes;

	//uint j = __umul24(blockIdx.y, blockDim.y) + threadIdx.y + nbr_lignes;

   //   uint i = __umul24(blockIdx.x, blockDim.x) + threadIdx.x;

	//uint j = __umul24(blockIdx.y, blockDim.y) + threadIdx.y;

float II = ((float)_3d_volume.TAILLE_VUE_W * (float)i)/512.0;

   float JJ = ((float)_3d_volume.TAILLE_VUE_W * (float)(j))/512.0;

float3 _FirstPointVolume;

   float3 _LastPointVolume;

int ij = i + _3d_volume.colomns*j;

if(!GetFirstcontact(II,_3d_volume.TAILLE_VUE_W - JJ,_FirstPointVolume,_LastPointVolume,_3d_volume,_matrix, _plans))

   {

	  //_image_result[ij] = 0;   

	  //return;   

   }

					

   _image_result[i + _3d_volume.colomns*j] = cuda_rayon_vr_hq_4(_3d_volume,_plans,_FirstPointVolume,_LastPointVolume,Col

orTex,OpacityTex,tex,samplerA);   

}				   

__kernel void

render_vr_cuda_kernel_2(__global uint *_image_result, tdst_3d_volume _3d_volume, tdstMatrix _matrix, tdstPlan _plans, int nbr_lignes,__global uchar4 * ColorTex, __global float * OpacityTex,__read_only image3d_t tex, sampler_t samplerA)

{

		  short i =  get_global_id(0) * 2;

		short j =  get_global_id(1) * 2 + nbr_lignes;

   //short i = (__umul24(blockIdx.x, blockDim.x) + threadIdx.x)*2;

	//short j = (__umul24(blockIdx.y, blockDim.y) + threadIdx.y)*2 + nbr_lignes;

	//uint j = __umul24(blockIdx.y, blockDim.y) + threadIdx.y;

float II = ((float)_3d_volume.TAILLE_VUE_W * (float)i)/512.0;

   float JJ = ((float)_3d_volume.TAILLE_VUE_W * (float)(j))/512.0;

float3 _FirstPointVolume;

   float3 _LastPointVolume;

	  

   if(!GetFirstcontact(II,_3d_volume.TAILLE_VUE_W - JJ,_FirstPointVolume,_LastPointVolume,_3d_volume,_matrix, _plans))

   {

	  //_image_result[ij] = 0;   

	  //return;   

   }

		  

   _image_result[i + _3d_volume.colomns*j] = cuda_rayon_vr_hq_2(_3d_volume,_plans,_FirstPointVolume,_LastPointVolume,Col

orTex,OpacityTex,tex,samplerA);   

}

and other functions

uint cuda_rayon_vr_hq_4(tdst_3d_volume _3d_volume, tdstPlan _plans,float3 _FirstPointVolume,float3 _LastPointVolume,global uchar4 * ColorTex,global float * OpacityTex,image3d_t tex,sampler_t samplerA){.....}

uint cuda_rayon_vr_hq_2(tdst_3d_volume _3d_volume, tdstPlan _plans,float3 _FirstPointVolume,float3 _LastPointVolume,global uchar4 * ColorTex,global float * OpacityTex,image3d_t tex,sampler_t samplerA){.....}

does someone have an idea on how to deal with this??

never mind just a function i didn’t define :thumbsup:

never mind just a function i didn’t define :thumbsup: