These are chat archives for deeplearning4j/deeplearning4j/earlyadopters

2nd
Mar 2018
Richard Corbishley
@rcorbish
Mar 02 01:13
How do I build libnd4j with cuda 9?
Alex Black
@AlexDBlack
Mar 02 01:19
it should auto-detect the cuda installation
https://github.com/deeplearning4j/libnd4j/blob/master/buildnativeoperations.sh#L364-L376
as for configuring to use a non-default install - looks like you can export CHIP_VERSION
Richard Corbishley
@rcorbish
Mar 02 01:23
Thanks. I think cuda 9 is the default, nvcc --version shows 9.1, but the build is picking up 8.0 ( I also have that installed)
Richard Corbishley
@rcorbish
Mar 02 01:28
Now I get strange error "rm: cannot remove 'cuda': Is a directory"
Alex Black
@AlexDBlack
Mar 02 01:30
cc @saudet @raver119 ^^ any ideas?
Richard Corbishley
@rcorbish
Mar 02 01:31
Let me reboot - always a last resort :clap:
Richard Corbishley
@rcorbish
Mar 02 01:39
Nope - same thing.
Richard Corbishley
@rcorbish
Mar 02 01:51
OK reinstalled libnd4j - seems to work. Is there a way to clean a previous bad build? "mvn clean" didn't do it.
Richard Corbishley
@rcorbish
Mar 02 02:04
does -cc still work on ./buildnativeoperations.sh
Alex Black
@AlexDBlack
Mar 02 02:10
yeah, it does
Richard Corbishley
@rcorbish
Mar 02 02:10
OK - looks like it will be a long build
Alex Black
@AlexDBlack
Mar 02 02:10
(not sure on the best way to clean a bad build though)
Richard Corbishley
@rcorbish
Mar 02 02:11
I installed cuda 9 after the first build, maybe some residual cuda 8 things left around
I'll be able to work on the svd issue tomorrow - when build is done
Alex Black
@AlexDBlack
Mar 02 02:14
great, thanks
usually the build isn't too long if you use -cc... like 10-15 minutes from scratch or something on that order?
(never timed it though)
Richard Corbishley
@rcorbish
Mar 02 02:16
That's what I remembered, it seems to be longer now and it's printing a lot of gencode = :(
I ran like this "./buildnativeoperations.sh -c cuda -сс sm_60"
Alex Black
@AlexDBlack
Mar 02 02:16
you want -cc 60 I think
(I use -cc 61 for compute capability 6.1 card)
Richard Corbishley
@rcorbish
Mar 02 02:18
Thanks - much better ( saving some CO2 for the planet)
I have 1060 = that's 60 I believe
cc 6.1
Richard Corbishley
@rcorbish
Mar 02 02:20
Thanks once more
Samuel Audet
@saudet
Mar 02 02:55
mvn clean should work, or
./buildnativeoperations.sh clean
Richard Corbishley
@rcorbish
Mar 02 02:56
Thank-you. I'll let it finish building overnight
Peter Ertl
@pertl
Mar 02 11:00
I found out that "git clean -xfd" is a nice way to clean all build results :-)
Richard Corbishley
@rcorbish
Mar 02 11:01
I'll make a note :)
Peter Ertl
@pertl
Mar 02 11:01
will even delete .gitignored files
so be careful