cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

sajis997
Adept I

Error while creating program from source

Hi forum,

I am trying to create an program object from source and i am getting the following error :

//////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source file: TexFilter.cl

createProgramFromSource: Error in OpenCL Program Object building.

ptxas application ptx input, line 100; error   : Illegal operand type to instruction 'ld'

ptxas application ptx input, line 111; error   : Call has wrong number of parameters

ptxas fatal   : Ptx assembly aborted due to errors

createProgramFromSource: CL_INVALID_BINARY

//////////////////////////////////////////////////////////////////////////////////////////////////////////////

I am not building the program object using binary . Why is it reporting CL_INVALID_BINARY ? And the previous three lines are obscure to me as well.

Any idea folks?

Thanks

Sajjadul

0 Likes
2 Replies
soylentgraham
Adept II

I might be mistaken but... you wouldn't get the error log until you use clBuildProgram would you?

Are you sure your host code isn't returning CL_INVALID_BINARY from clBuildProgram?

As for the errors... post/attach your kernel and someone might be able to help.

0 Likes
himanshu_gautam
Grandmaster

Please provide us the sample code.

0 Likes