Results 1 to 2 of 2

Thread: error in the clBuildProgram

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    2

    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

    Code :
     
    __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,ColorTex,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,ColorTex,OpacityTex,tex,samplerA);	
    }

    and other functions

    Code :
     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??

  2. #2
    Junior Member
    Join Date
    Sep 2010
    Posts
    2

    Re: error in the clBuildProgram

    never mind just a function i didn't define

Similar Threads

  1. clBuildProgram return -45 error
    By xstopka in forum OpenCL
    Replies: 3
    Last Post: 05-07-2011, 05:57 AM
  2. clBuildProgram() function error...!!
    By phoebe0105 in forum OpenCL
    Replies: 3
    Last Post: 05-13-2010, 07:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •