From: Karl R. <ru...@iu...> - 2013-03-17 01:18:04
|
Hi, > It is solved now; compiled and executed fine. Ok, good :-) > I was wondering if there is any provision to update this issue in the > manual or it is just another common sense that every programmer should > realize. You're right, this should be updated in the manual. :-) Thanks and best regards, Karli > > On Sun, Mar 17, 2013 at 12:26 AM, Karl Rupp <ru...@iu... > <mailto:ru...@iu...>> wrote: > > Hi, > > please use the empty constructor when putting objects into global > scope, i.e. > > viennacl::vector<double> x; > > The OpenCL backend only becomes available in main(). You can then > resize x accordingly: > > x.resize(s); > > This should resolve the issue. > > Best regards, > Karli > > > (...) |