Skip to content

ConstantIteratorTest  #226

@jpola

Description

@jpola

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 ] );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions