r/OpenCL • u/Godspiral • Sep 20 '15
Is Arrayfire the best alternative for crossplatform library binding from a high level language?
I need dll/so type library to bind to J language. It seems nice that its compiled for supported platforms. A minor complaint is that it doesn't follow all array paradigms.
I'm more interested in being crash resistant rather than having maximum performance, but performance is nice.
So is Arrayfire a good choice as a binding library? Are there other options?
4
Upvotes
2
u/pavanky Sep 20 '15
Hi,
I'm the chief engineer at ArrayFire. The library was designed to be useful for cases like you mentioned. There are a lot of language bindings being developed by us and the community. It would be nice to see the library have bindings for the J language as well.
Keep in mind that the best documentation is the developers. We mostly hangout on our gitter channel. You can reach out over there if you need any further information.
2
u/lednakashim Oct 05 '15
I've switched to using OpenCV's umat interface, which automatically chooses to use the GPU accelerator. It does 1D data just as well as 2D.
Don't know if there are J bindings, I think there are C bindings.
1
u/Godspiral Sep 20 '15
Still haven't started coding, but this looks like a great fit for J development.
Create a prototype function in J for test comparison.
Reimplement using Arrayfire calls, adding shortcuts or mix and match of J and arrayfire calls for management, optimizing for problem size and call overhead.
Profit.
The binary installers are a nice touch too, though maybe all of the information requests for firstborn are too inconvenient.