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

Using multiple GPUs to train the model error #28

Closed
kaisenseics opened this issue Mar 6, 2017 · 1 comment
Closed

Using multiple GPUs to train the model error #28

kaisenseics opened this issue Mar 6, 2017 · 1 comment

Comments

@kaisenseics
Copy link

I am trying to use multiple GPUs to train the model. So I changed the default value of opts.train.gpus in the cnn_ucf101_fusion file from [1] to [1 2]. But it reports the following error:

line 503 int cnn_train_dag (this is the line that call fwrite)
the file id is invalid. Please create a valid file id.

Could you please give some instruction on how to fix it? Thanks!

@feichtenhofer
Copy link
Owner

For multi-gpu training you will need to create a ramdisk where gradients are cached. Please first create a ramdisk and then set the path here: https://github.com/feichtenhofer/twostreamfusion/blob/master/cnn_ucf101_fusion.m#L47

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