F# with Cudafy?

Mar 29, 2014 at 9:05 AM
Edited Mar 29, 2014 at 9:26 AM
Has anyone managed to get F# and Cudafy working together?

I've replicated the CudafyIntroduction program and everything compiles and I get a valid cdfy file that CudafyViewer indicates is generating identical code as the C# version.

Unfortunately, there seems to be some problem with loading the generated code, or some such, as I get various errors indicating the generated functions are not part of Cudafy.Host.DynamicLauncher.

Here's an example F# function definition
type CudaTest() = 

    [<Cudafy>]
    static member addVector(thread:GThread) (a:int[])  (b:int[])  (c:int[]) : unit =
        let tid = thread.blockIdx.x
        if (tid < a.Length) then
            c.[tid] <- a.[tid] + b.[tid]
        else
            ()
I have tried many variants but all results in the same outcome of the dynamic function invocation failing. Here's the invocation code
            let x = _gpu.Launch(dn,d1)
            x ? addVector dev_a dev_b dev_c
VS12 solution at http://1drv.ms/1dWSlr0

Any suggestions?