You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
jhkumar
changed the title
Bolt_1.2:-Windows 32 & 64 bit: std::partial sum is having compilation issues when we used with UDD by calling transform_iterator.
std::partial sum is having compilation issues when we used with UDD by calling transform_iterator.
Jul 2, 2014
jhkumar
changed the title
std::partial sum is having compilation issues when we used with UDD by calling transform_iterator.
Bolt1.2: std::partial sum is having compilation issues when we used with UDD by calling transform_iterator.
Jul 7, 2014
CODE:
int get_global_id(int i);
int global_id;
BOLT_FUNCTOR(UDD_trans,
struct UDD_trans
{
int i ;
float f ;
};
);
int get_global_id(int i)
{
return global_id++;
}
BOLT_FUNCTOR(add_UDD,
struct add_UDD
{
int operator() (const UDD_trans x) const { return x.i + 3; }
typedef int result_type;
};
);
BOLT_TEMPLATE_REGISTER_NEW_ITERATOR( bolt::cl::device_vector, int, UDD_trans);
BOLT_TEMPLATE_REGISTER_NEW_TRANSFORM_ITERATOR( bolt::cl::transform_iterator, add_UDD, UDD_trans);
int main()
{
std::vector< int > stlOut(length);
return 0;
}
The text was updated successfully, but these errors were encountered: