Comments (2)
So you want to compute the sum of all elements across all vectors? Or you want to sum each vector independently?
If the former, then thrust::reduce
is what you want.
If the latter, then thrust::reduce_by_key
is what you'd want.
from thrust.
Closing due to no response. Feel free to reopen if you still have a question.
from thrust.
Related Issues (20)
- How to initilize thrust device vector from another device vector declared by cuda HOT 5
- `thrust::device_vector` should have an `std::initializer_list` constructor HOT 1
- `thrust::complex` divided by `int` HOT 2
- Mistake
- building thrust with clang cuda fails at target_compile_features HOT 10
- Documentation behind `#if 0` HOT 3
- Godbolt examples in the README fail to compile HOT 1
- [EPIC] Thrust Documentation Improvements HOT 1
- cannot build without thread API HOT 10
- Can thrust support device segmented sort?
- thrust::reduce doesn't work with cuda::proclaim_return_type HOT 1
- Compilation error with iterator_adaptor HOT 2
- Fix failing libcxx tests
- nvcc fatal : Unsupported gpu architecture 'compute_90' for $ cmake --build . -j ${NUM_JOBS} HOT 4
- Make libcu++ compile with gcc-6
- Modify Device Value Error in Official Doc Codes HOT 1
- Shadow warning in execute_with_dependencies
- `sequence` not modifying device array of `cuComplex` HOT 1
- Under what conditions does the reduce function would cause core dump? HOT 1
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 thrust.