Coder Social home page Coder Social logo

Bindings for VexCL about viennacl-dev HOT 8 CLOSED

viennacl avatar viennacl commented on June 24, 2024
Bindings for VexCL

from viennacl-dev.

Comments (8)

ddemidov avatar ddemidov commented on June 24, 2024

What kind of examples are you thinking of? Could something like this work?

from viennacl-dev.

karlrupp avatar karlrupp commented on June 24, 2024

Yep. Basically providing copy() functionality as well as wrappers for the solvers, yes. We could also just keep the wrappers in VexCL if you think this is more appropriate.

from viennacl-dev.

ddemidov avatar ddemidov commented on June 24, 2024

Can one currently do anything actually useful with vexcl bindings? I mean, are there any preconditioners in viennacl that may use limited functionality (expression templates, inner products, etc) of vexcl? Standalone solvers like CG or BiCGStab are not that useful for large problem sizes.

from viennacl-dev.

karlrupp avatar karlrupp commented on June 24, 2024

I assume that there will always be some functionality available in one library and not the other, so (in my small world) it makes sense to provide a convenient exchange mechanism

from viennacl-dev.

ddemidov avatar ddemidov commented on June 24, 2024

I agree with that, I just wanted to understand where is the better place for the exchange code. Currently it seems that VexCL users need ViennaCL algorithms more than ViennaCL users need VexCL types. So it is probably job of VexCL to provide the exchange mechanisms. Anyway, if one wants to use both libraries, then both code bases should be available, so it does not really matter.

I only would like to make sure that as much functionality from ViennaCL is usable with VexCL types as possible. Is inner_prod, prod, norm2, and clear all that could possibly be of need? (https://github.com/ddemidov/vexcl/blob/master/vexcl/external/viennacl.hpp)

from viennacl-dev.

karlrupp avatar karlrupp commented on June 24, 2024

Yeah, for now these functions are the only ones wrapped for the other bindings as well. Operator overloading is a silent prerequisite at the moment (similar to the default algebra in odeint) and taking care of most of the standard operations. I don't know whether it's worth relaxing this constraint.

from viennacl-dev.

ddemidov avatar ddemidov commented on June 24, 2024

I see.

When you mentioned copy() functionality, did you mean copying between viennacl::vectors and vex::vectors? This is straightforward if vexcl context only contains single compute device, but in general copy should go through host memory (which is as simple).

Also, it is possible to wrap vex::vector around raw OpenCL buffer, so in case of single compute device same device memory may be operated on both through viennacl and vexcl interfaces.

from viennacl-dev.

karlrupp avatar karlrupp commented on June 24, 2024

Considering that the interfacing code is in VexCL already and a duplication of bindings would lead to bad behavior, let's keep it as-is. Feel free to reopen if circumstances change.

from viennacl-dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.