template<> void xBiCGStab<double>::xBiCGStab_Function( bool flush ) { clsparseStatus status = clsparseDcsrbicgStab(&x, &csrMtx, &y, solverControl, control); if( flush ) clFinish( queue ); }
void test_bicg() { if ( typeid(T) == typeid(cl_float) ) { clsparseStatus status = clsparseScsrbicgStab(&gX, &CSRE::csrSMatrix, &gB, solverControl, CLSE::control); ASSERT_EQ(clsparseSuccess, status); } if ( typeid(T) == typeid(cl_double)) { clsparseStatus status = clsparseDcsrbicgStab(&gX, &CSRE::csrDMatrix, &gB, solverControl, CLSE::control); ASSERT_EQ(clsparseSuccess, status); } }