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

Running Error. #5

Open
KisAaki opened this issue Dec 13, 2024 · 1 comment
Open

Running Error. #5

KisAaki opened this issue Dec 13, 2024 · 1 comment

Comments

@KisAaki
Copy link

KisAaki commented Dec 13, 2024

Hi, when running this code, I met a problem when I'm trying to run it on 2 GPU.How can I fix this problem?
File "/data1/anaconda3/envs/yzy_pgst/lib/python3.9/site-packages/torch/nn/parallel/parallel_apply.py", line 64, in _worker
output = module(*input, **kwargs)
File "/data1/anaconda3/envs/yzy_pgst/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data2/2023/yzy/models/PointGPT.py", line 778, in forward
_, U = torch.linalg.eigh(L1)
RuntimeError: lazy wrapper should be called at most once

@jerryfeng2003
Copy link
Owner

Hi,
Adding the code torch.cuda.current_device() before _, U = torch.linalg.eigh(L1) may solve the problem.

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