We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I'm testing new functionality of Bolt 1.3 library on GPU.
I've followed example from follwong page: http://developer.amd.com/community/blog/2013/04/26/details-of-the-bolt-beta/
I found iterator functionality very attractive but the example from the mentioned webpage seems not to work correctly, at least under linux OS:
#include "bolt/cl/device_vector.h" #include "bolt/cl/iterator/counting_iterator.h" #include "bolt/cl/copy.h" int main( int argc, char* argv[] ) { bolt::cl::device_vector< int > devV( 100 ); bolt::cl::copy( bolt::cl::make_counting_iterator< int >( 10 ), bolt::cl::make_counting_iterator< int >( 10 + devV.size( ) ), devV.begin( ) ); }
The input vector is not changed at all. I've executed it using bolt::cl::transform instead of bolt::cl::copy and it is working correctly.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I'm testing new functionality of Bolt 1.3 library on GPU.
I've followed example from follwong page: http://developer.amd.com/community/blog/2013/04/26/details-of-the-bolt-beta/
I found iterator functionality very attractive but the example from the mentioned webpage seems not to work correctly, at least under linux OS:
The input vector is not changed at all. I've executed it using bolt::cl::transform instead of bolt::cl::copy and it is working correctly.
The text was updated successfully, but these errors were encountered: