iu-parfunc / accelerack

C Bindings for Accelerate, Racket Frontend to Accelerate
2 stars 2 forks source link

Milestone (acc_hs): Allocate and fill in ptrs of response array #15

Open laurmcarter opened 8 years ago

laurmcarter commented 8 years ago

Evaluating the s-expression from racket results in an array 'Array sh e'. In order to pass the answer back to Racket, it first allocates the pointers necessary to store the array. Then, we call 'toPtr' from Data.Array.Accelerate.IO with the allocated ptrs and the answer array.

Todo: Obtain type rep from an array, in order to fully resolve 'BlockPtrs' type family.