Comments (3)
I agree with this general direction. However, I do not think that it can replace ALL of the clsparse private structs, as they contain a lot of host data. For sure, I would hope that they could be used for all cl_mem or void* members.
You may have to create a special constructor, which can 'give' already allocated device memory to the vector. The destructor would also have to be special, because it does not in fact 'own' the memory. In a way, this is kind of like a weak_ptr concept from shared_ptr model. However, when we create temporary internal buffers, we obviously want it to allocated and deallocate the memory because it 'owns' the memory.
from clsparse.
The clsparse::vector and array are already present in the code. In every iteration I see the progress where the clsparse::vector is overtaking the *Private concept.
from clsparse.
Yes, and this is a good thing. If we could eventually eliminate the *Private and the memmapRAII classes, clsparse becomes simpler to maintain. With respect to your question in #138, bolt::device_vector would potentially replace clsparse::vector.
from clsparse.
Related Issues (20)
- make install not working HOT 2
- Testing depends on remote content fetching HOT 6
- Possible overlinkage HOT 2
- Missing implementations of clsparseScoomv and clsparseDcoomv HOT 4
- "Kernel not found in cache" for SPMV sample HOT 1
- C# Wrapper HOT 5
- Wrong system size checks? HOT 4
- clsparseScoo2csr crashes for small matrix sizes
- Documentation does not make clear when output matrices are allocated by the library and when they have to be supplied by the user
- Probable bug in clsparseScsrmm() with cldenseMatrix HOT 2
- Not building on OS X High Sierra
- Segfault when reading 0-based matrix
- source-provider.cpp: No such file or directory HOT 1
- How to transpose?
- Can not link shared library HOT 1
- Segmentation fault when create cl_mem in sample_spmv
- CSR matrix format stores in a file
- compile error
- Example Interface with Eigen SparseMatrix
- Build fail at mm-reader.cpp
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 clsparse.