Skip to content

Graphic Memory problems #3

@ZorrowHu

Description

@ZorrowHu

When running with dataset DIGINETICA, I found this program is really memory demanding, not to speak of YOOCHOOSE. For my case, one TITAN XP is just not enough. Then I was trying to apply multi graph cards to cuda and I just failed to do so.
I try to use Dataparallel from torch:

os.environ['CUDA_VISIBLE_DEVICES'] = '0,1'
model = torch.nn.Dataparallel(SessionGraph())
model = model.cuda()

Since model is now a DataParallel object the parameters in train_test is modified accordingly

model.loss_function → model.module.loss_function
...

And that didn't work. I still got runtime error about not enough memory in GPU0 while GPU1 was barely utilized. So I want to know how you guys done it. Great thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions