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

R CMD check error on matrix initialization #169

Open
nfultz opened this issue Mar 2, 2020 · 2 comments
Open

R CMD check error on matrix initialization #169

nfultz opened this issue Mar 2, 2020 · 2 comments

Comments

@nfultz
Copy link

nfultz commented Mar 2, 2020

I'm doing some benchmarking on our new cluster, got a few test failures on R CMD check on vclMatrix initialization. 00check.log is attached.

  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1802 | SKIPPED: 160 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: gpuMatrix Integer Precision Sum (@test_gpuMatrix_row_col.R#41) 
  2. Failure: Non-Shared memory between vclMatrix & vclVector (@test_shared_memory.R#69) 
  3. Error: vclMatrix complex float class initializer (@test_vclMatrix_classes.R#22) 
  4. Error: vclMatrix complex double class initializer (@test_vclMatrix_classes.R#38) 
  5. Error: vclMatrix integer scalar initializers (@test_vclMatrix_classes.R#156) 
  6. Error: vclMatrix Integer Precision Sum (@test_vclMatrix_row_col.R#43) 
  7. Failure: vclMatrix set matrix access (@test_vclMatrix_utils.R#272) 

Here's our sessionInfo() also.

R version 3.6.2 (2019-12-12)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 8 (Core)

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.6.2 tools_3.6.2   

00check.log

@cdeterman
Copy link
Owner

Interesting, I'm not sure what is exactly happening. Could you try doing any of those tests directly to see more details of an exact error?

@nfultz
Copy link
Author

nfultz commented Apr 13, 2020

Able to reproduce on one test - https://github.com/cdeterman/gpuR/blob/master/tests/testthat/test_gpuMatrix_algebra.R#L503

It crashes when run through testthat but not when run line-by-line in the console. here is the error message testthat prints:

gpuMatrix algebraR: /home/nfultz/R/x86_64-redhat-linux-gnu-library/3.6/RViennaCL/include/viennacl/ocl/kernel.hpp:232: void viennacl::ocl::kernel::arg(unsigned int, const VCL_TYPE&) [with VCL_TYPE = viennacl::matrix_range<viennacl::matrix<int, viennacl::row_major, 1> >]: Assertion `&val.handle().opencl_handle().context() == &handle_.context() && bool("Kernel and memory object not in the same context!")' failed.

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

2 participants