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

Bolt_1.3:Windows:- Scan family test cases fails for OpenCL CPU path. #225

Open
jhkumar opened this issue Dec 3, 2014 · 0 comments
Open

Comments

@jhkumar
Copy link

jhkumar commented Dec 3, 2014

Observed test case failures for bolt cl scan families like exclusive_scan, inclusive_scan, transform_exclusive_scan, transform_inclusive_scan only for the OpenCL CPU path. For other paths like Gpu, Automatic, MultiCoreCpu, and Serial Cpu same test cases are passing.

EXAMPLE:
TEST (sanity_exclusive_scan_stdVectVsDeviceVectWithIters, floatSameValuesSerialRange){

int size = 1000;
TAKE_THIS_CONTROL_PATH
bolt::cl::device_vector< float > boltInput( size, 1.125f );
bolt::cl::device_vector< float >::iterator boltEnd = bolt::cl::exclusive_scan( my_ctl, boltInput.begin( ), boltInput.end( ), boltInput.begin( ), 2.0f);

std::vector< float > stdInput( size, 1.125f);
std::vector< float >::iterator stdEnd  =    bolt::cl::exclusive_scan( stdInput.begin( ), stdInput.end( ), stdInput.begin( ), 2.0f );

EXPECT_FLOAT_EQ((*(boltEnd-1)), (*(stdEnd-1)))<<std::endl;

}

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