cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

dukeleto
Adept I

problem with gather kernel with different sized inputs & outputs

0 Likes
2 Replies
genaganna
Journeyman III

in_a11d19 is double type but you are using swizzling

 

illegel to use swizzling on scalar data type(compiler should catch at semantic checking)

 

As side point, 1.3 fails to generate appropriate code if you use swizzling on gather arrays.

 

I am surprised cpu backend working fine.

 

remove swizzling for scalar types it works fine

0 Likes
dukeleto
Adept I

Hi Genaganna, thanks for the answer.
I was under the impression from an example code somewhere in the sdk that swizzling like this on a one-element type
was ok, and allowed getting around the annoying aspect of not being able to multiply a float by a float4.
If not, then indeed the compiler should complain! (it doesn't)
However, changing the kernel does not change the results: ok with cpu, 0 with CAL.
Any ideas?
0 Likes