Comments (2)
Need to see how this fails today.
from thrust.
The current failure mode looks pretty reasonable: https://godbolt.org/z/zTPeTTj1z
If you forget the -fopenmp
flag in the following code
#define THRUST_HOST_SYSTEM THRUST_HOST_SYSTEM_OMP
#include <thrust/reduce.h>
#include <thrust/host_vector.h>
#include <thrust/execution_policy.h>
#include <iostream>
int main(){
thrust::host_vector<int> v(10, 1);
auto r = thrust::reduce(thrust::host, v.begin(), v.end());
std::cout << r << std::endl;
}
you get:
error: static assertion failed with "OpenMP compiler support is not enabled"
from thrust.
Related Issues (20)
- strided sum of a vector HOT 2
- 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.