cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

roddomi
Journeyman III

Operational error on calCtxRunProgram

Hi,

I am getting 'Operational error' on calCtxRunProgram. My domain is {0, 0, 10, 0} and my kernel is:

il_cs_2_0

dcl_num_thread_per_group 10

dcl_literal l0, 1, 2, 3, 4

mov g[0], l0.x

end

 

calclCompile is ok. It's only when I get to calCtxRunProgram that I get the error.

 

What could be going wrong?

 

Thank you.

0 Likes
3 Replies
roddomi
Journeyman III

Anybody? What does it mean for calCtxRunProgram to return 'Operational error'? Thank you.

0 Likes

Have you bound "g[]" with a global buffer?

0 Likes

It is working now. The problem was that compute shaders should be invoked using calCtxRunProgramGrid (not calCtxRunProgram).

Could you please add this to the CAL docs?

Thank you.

0 Likes