# error in the clBuildProgram

**URL:** <https://forums.developer.nvidia.com/t/error-in-the-clbuildprogram/18679>\
**Category:** CUDA Programming and Performance\
**Created:** [September 8, 2010, 2:29pm UTC](https://forums.developer.nvidia.com/t/error-in-the-clbuildprogram/18679 "2010-09-08T14:29:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![caravel\_6](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@caravel\_6](https://forums.developer.nvidia.com/u/caravel_6)\
**Post date:** [September 8, 2010, 2:29pm UTC](https://forums.developer.nvidia.com/t/error-in-the-clbuildprogram/18679/1 "2010-09-08T14:29:17Z")

</div>

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

```auto
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

```auto
__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

```auto
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??

---

<div class="post-metadata">

**Author:** ![caravel\_6](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@caravel\_6](https://forums.developer.nvidia.com/u/caravel_6)\
**Post date:** [September 8, 2010, 4:02pm UTC](https://forums.developer.nvidia.com/t/error-in-the-clbuildprogram/18679/2 "2010-09-08T16:02:30Z")

</div>

never mind just a function i didn’t define [External Image](http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/thumbsup.gif "Image hosted on another site. Click to open in a new tab.")

---

<div class="post-metadata">

**Author:** ![caravel\_6](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@caravel\_6](https://forums.developer.nvidia.com/u/caravel_6)\
**Post date:** [September 8, 2010, 4:02pm UTC](https://forums.developer.nvidia.com/t/error-in-the-clbuildprogram/18679/3 "2010-09-08T16:02:30Z")

</div>

never mind just a function i didn’t define [External Image](http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/thumbsup.gif "Image hosted on another site. Click to open in a new tab.")
