Comments (8)
What kind of examples are you thinking of? Could something like this work?
from viennacl-dev.
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.
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.
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.
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.
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.
I see.
When you mentioned copy()
functionality, did you mean copying between viennacl::vector
s and vex::vector
s? 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.
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)
- Unable to run tutorial amg HOT 1
- Filter for OpenCL context creation
- cuda-10.1 support HOT 2
- Iterative Solvers - Matrix Output? HOT 2
- Copying Eigen Matrix (host) to vcl_matrix (device) HOT 3
- Blaze lib support HOT 1
- Copying values in parallel HOT 3
- I have a problem with spai HOT 2
- Cannot compile against CUDA 9.1 on Ubuntu 18.04 HOT 4
- Tuning Lanczos to find all eigenvalues of a dense Hermitian matrix HOT 2
- Question about compute SPAI HOT 1
- Get CL_PLATFORM_NOT_FOUND_KHR when clGetPlatformIDs() is called in viennacl HOT 5
- How to achieve partial synchronization? HOT 5
- [Feature Request] range class modification after initialization HOT 1
- [Tutorial Request] Elementwise Operation HOT 10
- [Operator Missing]matrix_base += & -= float value HOT 3
- tests fail on AArch64, Fedora 33 HOT 6
- Viennacl failed to build with cuda-11.0
- error about wrap a viennacl vector with an existing device vector. HOT 1
- Assessment of the difficulty in porting CPU architecture for viennacl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viennacl-dev.