Skip to content

Lessons: Accelerate

dybber edited this page Dec 5, 2012 · 6 revisions
  • You have to be sure you give the correct shape to reshape otherwise you might get compilations error from nvcc, 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 for reshape has to be compiled at the same time as the one for filter.

Survey "VectorMARK" in progress

Clone this wiki locally