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

change gpu id #42

Open
hourieh-jamali opened this issue Apr 14, 2018 · 0 comments
Open

change gpu id #42

hourieh-jamali opened this issue Apr 14, 2018 · 0 comments

Comments

@hourieh-jamali
Copy link

hi
I have a question about running this code on system has one gpu,my system has a GeForce GTX 980 Ti GPU and I comment MPI_LIB & MPI_INCLUDE in config file, and as a wrote in expriments part I have to change GPU device id in these files:
train_model() and extract_features() of scripts/rountines.sh
main() of tools/compute_impact_score.py**
how to change Gpu Id in these parts?
I change train_model() method like as this

Training

if [[ $# -eq 2 ]]; then
GLOG_logtostderr=1 ${CAFFE_DIR}/build/tools/caffe train
-solver ${solver} -gpu 0 2>&1 | tee ${log}
else
GLOG_logtostderr=1 ${CAFFE_DIR}/build/tools/caffe train
-solver ${solver} -weights ${pretrained_model} -gpu 0 2>&1 | tee ${log}
but I don't know how to change extract_feature() and compute_impact_score..py parts?
thank you

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