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

Errors in sphereGpu_test #2

Open
akonneker opened this issue Jul 27, 2018 · 0 comments
Open

Errors in sphereGpu_test #2

akonneker opened this issue Jul 27, 2018 · 0 comments

Comments

@akonneker
Copy link

When running testSphere I get the following error:

➜  build git:(master) ✗ ./testSphere 
Running 2 test cases...
----------------------- sphere ----------------------
sampled point:  0.959749 -0.280846 0.0028591
q             :   0.886007 -0.0371732   0.462179
q in TpS north: 0.888576 0.465101
q (Log->Exp)  :   0.886007 -0.0371732   0.462179
x in TpS:   -0.577018    0.432391     1.04507    0.769108 -0.00310499    -0.20087    0.411206    -0.16583    0.409948
muTrue=
 -0.591753  0.0185825   0.541358   0.570023   0.513567
  0.190217 -0.0309612  -0.639339  -0.472942   -0.33348
 -0.783355   0.999348   0.546056  -0.671863   0.790595
muEst =
 -0.687199  0.0471051   0.175038    0.80972   0.515675
  0.246121 -0.0251527  -0.763128  -0.401764    -0.3977
 -0.683508   0.998573   0.622091  -0.427714    0.75889
muInit =
  -0.628084     0.24783    0.544876 0.000865349    0.439955
   0.562772    0.786237   -0.827546   -0.397558   -0.179061
    -0.5374   -0.566049   -0.135196   -0.917577    0.879987
mapping -1  0  0 to TpS at1 0 0
3.48787e-16           0    -3.14159
Exp ing it back down:           -1            0 -1.22465e-16
----------------------- sphere Gpu ----------------------
 karcher means on CPU
-0.642447
 0.261111
-0.720474
-0.483174
 0.340593
 -0.80656
D=3 N=20 K=6
ClTGMMDataGpu<T>::karcherMeans__: converged after 0 residual = 0 0 0 0 0 0
karcherMeansFull: 6.623ms
-0.885112  0.897132  -0.75364  0.770911  0.156756 -0.654378
-0.412325    0.3888 -0.311664 -0.136646  0.127642 -0.734173
 0.215789 -0.209737 -0.578699 -0.622113  0.979355  0.181049
true centers
-0.591753 -0.495743
 0.190217  0.423411
-0.783355 -0.758262
/home/akonneker/code/dpMM/test/sphere.cpp(145): error in "sphereGpu_test": check ((karcherMeans.leftCols(2) - mus).array().abs() < 1e-2).all() failed
Log_p_north GPU: 0.064ms
/home/akonneker/code/dpMM/test/sphere.cpp(150): error in "sphereGpu_test": check x.rows() == static_cast<myFlt>(D-1) failed
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.498654
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.0388851
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.780706
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.297408
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.791581
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.0459907
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.434165
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
1.75733
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
1.18908
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.945637
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.203667
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.369025
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.710309
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
0.174019
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
2.09557
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
1.55793
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
1.44941
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
1.29958
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
1.19854
/home/akonneker/code/dpMM/test/sphere.cpp(157): error in "sphereGpu_test": check fabs(x.col(i).norm() -acosf(ps.col((*sz)(i)).transpose()*sq->col(i)) ) < 1e-4 failed
1.75418
Log_p_north CPU: 0.021ms
/home/akonneker/code/dpMM/test/sphere.cpp(173): error in "sphereGpu_test": check ((x-xx).array().abs() < 1.0e-4).all() failed
sufficient statistics test --------------------
-12.2931  9.45833        0        0        0        0
 1.58493  13.4296        0        0        0        0
 15.5211  10.5617        0        0        0        0
-1.94223  12.2331        0        0        0        0
-1.94223  12.2331        0        0        0        0
0.921035  19.3358        0        0        0        0
      10       10        0        0        0        0
unknown location(0): fatal error in "sphereGpu_test": memory access violation at address: 0x00000000: no mapping at fault address
/home/akonneker/code/dpMM/test/sphere.cpp(173): last checkpoint

*** 24 failures detected in test suite "distributions test"

Any thoughts as to what the issue might be? All the other tests run just fine.

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