YaccConstructor / Brahma.FSharp

F# quotation to OpenCL translator and respective runtime to utilize GPGPUs in F# applications.
http://yaccconstructor.github.io/Brahma.FSharp
Eclipse Public License 1.0
74 stars 17 forks source link

Support ToHost for arrays, which are only on the host #111

Closed dpanfilyonok closed 3 years ago

dpanfilyonok commented 3 years ago

Is your feature request related to a problem? Please describe. At the moment we cannot be sure that the f# array exists on the GPU, so this makes the ToHost call undefined.

Describe the solution you'd like Array.ToHost should do nothing with arrays, which exist only on the host, rather than throw an exception.

dpanfilyonok commented 3 years ago

Fixed in 28276e9825423ca1b4530d33e81b02c44fad4269.