Skip to content
New issue

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

ConstantIteratorTest #226

Open
jpola opened this issue Feb 9, 2015 · 0 comments
Open

ConstantIteratorTest #226

jpola opened this issue Feb 9, 2015 · 0 comments

Comments

@jpola
Copy link

jpola commented Feb 9, 2015

The following code from ConstantIteratorTest should use bolt::cl::device_vector, but uses std::vector insted

TYPED_TEST_P( CountingIterator, DeviceTransformVector )

// initialize the data vector to be sequential numbers
std::vector< TypeParam > devVec( 3 );
bolt::cl::transform( devVec.begin( ), devVec.end( ), bolt::cl::make_counting_iterator( 42 ), devVec.begin( ),
bolt::cl::plus< TypeParam >( ) );
EXPECT_EQ( 42, devVec[ 0 ] );
EXPECT_EQ( 43, devVec[ 1 ] );
EXPECT_EQ( 44, devVec[ 2 ] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant