v 1.5.0-1 - #1
Conversation
|
@sgsokol - Great! Thanks for taking time to figure out github. I went ahead and merged your commits into a develop branch. I will try my best to get this latest version tested on our Ubuntu system this week (work permitting) and keep you posted. I'm really looking forward to having the package up and running again. |
|
@brian-j-smith Hi, |
|
I did. Unfortunately, no news isn't good news in this case, although the news is not all bad. We had to spend a little time upgrading our system to the latest version of CUDA (6.5) and magma (1.5.0). Those seem to be up and running okay. I was then able to get your patch compiled and installed in R (3.1.1), but then ran into some bumps :-(. Some of the operators and functions are working, but some are giving errors... then work came calling before I could figure out exactly what was causing the problems. I have some time this weekend (finally) to have another go at getting things working. I'll check back in on Monday, hopefully with some more specific details. Thanks for being patient. |
|
Good. Feel free to post error messages if you want some help on problem diagnosis. |
|
Brian, I have got some erros on my side too. Installation of R magma package 1.5.0-1 went smoothly but the tests failed at matrix multiplication. I'll keep you informed. |
|
On this card magma-1.5.0 does not work proprely with cuda-6.0 neither :( |
|
I'm glad you tried that out. Very helpful. I guess the good news is that it wasn't just me. Our card is 1.3 compatible, and I had made a similar change to the arch option to get things working. I did notice messages in recent versions of CUDA warning that 1.x compatibility is going to be dropped soon and that those cards may produce incorrect results. At least your result gives me a good idea of where to start looking this weekend. |
|
More news on tracking cublas issue. If running lapack (option --lapack), MAGMA and CUBLAS error are both computed transA = No transpose, transB = No transpose M N K MAGMA Gflop/s (ms) CUBLAS Gflop/s (ms) CPU Gflop/s (ms) MAGMA error CUBLAS error1088 1088 1088 503.98 ( 5.11) 709.42 ( 3.63) 17.48 ( 147.35) 4.34e-15 4.34e-15 failed (even if the test is labeled as failed the cublas error is arounf 10^-14 that's ok for me) If running lapack (option --lapack), MAGMA and CUBLAS error are both computed transA = No transpose, transB = No transpose M N K MAGMA Gflop/s (ms) CUBLAS Gflop/s (ms) CPU Gflop/s (ms) MAGMA error CUBLAS error1088 1088 1088 27.56 ( 93.46) 6205.51 ( 0.42) 17.55 ( 146.80) 4.34e-15 9.98e-01 failed (here the cublas error is around 10⁰ => too bad. Note that magma errors are low and acceptbale) |
|
Well this is kind of frustrating and a bit of a head-scratcher. I don't understand why the 3.0 compatible card would have such large errors while the 3.5 card (albeit a much more sophisticated one) seems to be okay. I haven't had much luck in getting things to work on our 1.3 card, but would be willing to concede it is not worth spending too much time on that given the 1.x cards will be not be supported much longer. If you get to a point where you have the package working on 2.x and 3.x cards, I would be happy to turn the maintenance reigns over to you. I pushed some configuration changes up to develop branch and, if you like, can say a few words about those as well as my experience getting the package installed in different Linux environments. |
|
You are right, it's sad to see a 3.0 card can produce such errors. I'll continue to try to get things working at least on 3.0 (for now, I don't have an access to 2.x card). If I manage to do so, it's ok for me be a contributor to the package. You can continue to be maintainer if you are willing to do it. |
|
Sounds good. I'll work on getting a 2.0 card to have something up and running for development on my end. You're welcome to keep contributing and I'll maintain - it's not as glamorous as it looks :) As for different Linux environments... I thought your configure file looked pretty good. The one thing I did noticed was a At least that is my understanding of how |
|
I don't have much experience in R on multiple Linux distributions. For example, on a station with 1.1 gpu card that I used for previous tests, R is installed via system package mangement tool. Its binary is /usr/bin/R, its R_HOME is defined as /usr/lib64/R and includes go to /usr/include/R. I suppose that you are talking about a case like this. Well, it turns out that in this particular case the things worked well even with R_INCLUDE_DIR set to ${R_HOME}/include as the installer has put a symbolic link in this place pointing to /usr/include/R. |
|
Brian, I have left a comment on magma formum about my problem with 3.0 card : |
|
Well, for 1.1 card I have found the answer by myself. By isolating a call to cublaDgemm(), I've got a return status CUBLAS_STATUS_ARCH_MISMATCH, i.e. this card does not support double precision. |
|
Oh yeah, I like the include trick. Our system doesn't have the include symbolic link in the R_HOME (/usr/lib64/R) directory. Maybe a non-standard install was done by our IT group. They don't let me have admin privileges, so I have to live with what they do :( That makes sense about the 1.1 card. It's been so long, I had forgotten about it not supporting double precision. |
Hi Brian,
Getting familiar with github took some time but here is my proposal for commit.
While cheking by automatic R tool I've got the following output:
[root@gba-03264 R]# R CMD check --as-cran --install-args="--configure-args='--with-lapack=/usr/local/atlas/lib64/libsatlas.so --with-magma-home=/usr/local/src/magma-1.5.0 --with-r-home=/usr/local/src/R-3.1.1'" magma_1.5.0-1.tar.gz
Maintainer: ‘Brian J. Smith brian-j-smith@uiowa.edu’
New maintainer:
Brian J. Smith brian-j-smith@uiowa.edu
Old maintainer(s):
Brian J Smith brian-j-smith@uiowa.edu
CRAN repository db overrides:
OS_type: unix
No repository set, so cyclic dependency check skipped
It is recommended to use ‘given’ instead of ‘middle’.
OK
le package 'methods' est utilisé mais pas déclaré
See the information on DESCRIPTION files in the chapter ‘Creating R
packages’ of the ‘Writing R Extensions’ manual.
Note: information on .o files is not available
File ‘/home/sokol/dev/R/magma.Rcheck/magma/libs/magma.so’:
Found ‘exit’, possibly from ‘exit’ (C)
Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console. The detected symbols
are linked into the code but might come from libraries and not actually
be called.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
!pdfTeX error: pdflatex (file ec-inconsolata): Font ec-inconsolata at 540 not f
ound
==> Fatal error occurred, no output PDF file produced!
WARNING: There was 1 warning.
NOTE: There were 4 notes.
See
‘/home/sokol/dev/R/magma.Rcheck/00check.log’
for details.
Please review and commit if everything is OK.
Best,
Serguei.