-
Notifications
You must be signed in to change notification settings - Fork 0
Lessons: Accelerate
dybber edited this page Dec 5, 2012
·
6 revisions
-
You have to be sure you give the correct shape to
reshapeotherwise you might get compilations error fromnvcc, Accelerate doesn't check it for you -
Kernel code can not depend on the output of another kernel. For instance, we tried:
let xs = filter somePredicate someVector in reshape (Z :. length xs :. 3) someOtherVector
This doesn't work as "
length xs" can not be computed before Accelerate-run time, but the kernel forreshapehas to be compiled at the same time as the one forfilter.