Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Installing two DIGITS on one computer #1411

Open
szm-R opened this issue Jan 23, 2017 · 5 comments
Open

Installing two DIGITS on one computer #1411

szm-R opened this issue Jan 23, 2017 · 5 comments
Labels

Comments

@szm-R
Copy link

szm-R commented Jan 23, 2017

Hi everyone

I want to install two digits on my system, one to use as CPU-only and the other for GPU .As far as I know to use digits in CPU-only mode one must build nvcaffe in this mode and then link this caffe with Digits and there isn't a way to optionally choose the platform for training. So in order to be able to use both cpu and gpu for training I think I need to install two DIGITS, right? (I know that training on cpu is much slower than gpu, but still I need to do this).

Now the problem is that to start the webapp we enter address localhost:5000, how does this work when there are two digits on system?!

Thanks in advance!

@lukeyeager
Copy link
Member

Read these docs:

https://github.com/NVIDIA/DIGITS/blob/digits-5.0/docs/Configuration.md
https://github.com/NVIDIA/DIGITS/blob/digits-5.0/digits/__main__.py

Example usage:

DIGITS_JOBS_DIR=~/digits-jobs-cpu CAFFE_ROOT=~/caffe-cpu ./digits-devserver --port 5001

DIGITS_JOBS_DIR=~/digits-jobs-gpu CAFFE_ROOT=~/caffe-gpu ./digits-devserver --port 5002

@szm-R
Copy link
Author

szm-R commented Jan 23, 2017

Thank you very much! I will test this.

@szm-R
Copy link
Author

szm-R commented Jan 24, 2017

Hello again, As I said before I want to use digits in cpu only mode, I have built caffe in cpu only and then when I run digits as you said it still detects gpu (and because the caffe is cpu only training results in error), I searched and there seemed to be this way of running ./digits-devserver --config to choose none as gpu device but when I try to run this it says:
main.py: error: unrecognized arguments: --config
I have done this once (a couple of month before) and it worked but now it gives me this (digits version is 4.1). what should I do?

@lukeyeager
Copy link
Member

References to the --config flag are outdated. DIGITS 5.0 includes #1091 which does away with that flag.

It's possible that adding CUDA_VISIBLE_DEVICES= (setting it to the empty string) to the environment of your CPU DIGITS process will help DIGITS recognize that it shouldn't worry about GPUs.

@szm-R
Copy link
Author

szm-R commented Jan 24, 2017

running with empty CUDA_VISIBLE_DEVICES= solved it, it gives the following error
cudaRuntimeGetVersion() failed with error #38
but then it runs OK on CPU, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants