-
I successfuly ported my code from uBLAS to Vienna but the performance degraded.
uBLAS: Elapsed time: 3' 22.833 sec
Vienna: Elapsed time: 7' 38.710 sec
The code is running on a CPU with 24 cores and they are all reported 100% busy by top.
The differences in the code are minimal.
The core of the algorithm is this:
Vector gb1(numHidden);
# ifdef USE_UBLAS
noalias(gb1) =...
2013-05-06 02:35:07 PDT in ViennaCL
-
Thanks, that worked.
2013-05-06 02:13:27 PDT in ViennaCL
-
I forgot to mention a way to replicate the problem; just use:
Mlp m;
m = Mlp();.
2013-05-05 06:17:48 PDT in ViennaCL
-
I am trying to port an application from uBlas to ViennaCL.
I just replaced uBlas vectors and matrices with vienna::vector and vienna::matrix.
I get an error during the initialization of a class that contains a matrix:
struct Mlp {
viennacl::matrix<double, viennacl::row_major> w1, w2;
viennacl::vector<double> b1, b2;
...
};
Just when initializing the structure...
2013-05-05 05:20:32 PDT in ViennaCL