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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using Intel PyTorch extension for Arc GPU on Ubuntu #122549

Closed
SoldierWz opened this issue Mar 23, 2024 · 3 comments
Closed

Error using Intel PyTorch extension for Arc GPU on Ubuntu #122549

SoldierWz opened this issue Mar 23, 2024 · 3 comments
Assignees
Labels
module: intel Specific to x86 architecture triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@SoldierWz
Copy link

SoldierWz commented Mar 23, 2024

馃悰 Describe the bug


RuntimeError Traceback (most recent call last)
Cell In[6], line 107
105 outputs = model(features)
106 loss = criterion(outputs, labels)
--> 107 loss.backward()
108 optimizer.step()
109 epoch_train_loss += loss.item() * len(features) # 璁板綍璁粌鎹熷け

File ~/mambaforge/envs/pytorch-arc/lib/python3.11/site-packages/torch/_tensor.py:492, in Tensor.backward(self, gradient, retain_graph, create_graph, inputs)
482 if has_torch_function_unary(self):
483 return handle_torch_function(
484 Tensor.backward,
485 (self,),
(...)
490 inputs=inputs,
491 )
--> 492 torch.autograd.backward(
493 self, gradient, retain_graph, create_graph, inputs=inputs
494 )

File ~/mambaforge/envs/pytorch-arc/lib/python3.11/site-packages/torch/autograd/init.py:251, in backward(tensors, grad_tensors, retain_graph, create_graph, grad_variables, inputs)
246 retain_graph = create_graph
248 # The reason we repeat the same comment below is that
249 # some Python versions print out the first line of a multi-line function
...
257 allow_unreachable=True,
258 accumulate_grad=True,
259 )

RuntimeError: 0 <= device.index() && device.index() < static_castc10::DeviceIndex(device_ready_queues_.size()) INTERNAL ASSERT FAILED at "/build/pytorch/torch/csrc/autograd/engine.cpp":1418, please report a bug to PyTorch.

Versions

wget https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py

For security purposes, please check the contents of collect_env.py before running it.

python collect_env.py

cc @frank-wei @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10

@ZhaoqiongZ
Copy link
Contributor

Hi @SoldierWz , Could you offer a reproducible script ?

@malfet malfet added module: intel Specific to x86 architecture triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Mar 25, 2024
@malfet
Copy link
Contributor

malfet commented Mar 25, 2024

Please file your issue to https://github.com/intel/intel-extension-for-pytorch
but cc: @jgong5

@malfet malfet closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2024
@SoldierWz
Copy link
Author

Please file your issue to https://github.com/intel/intel-extension-for-pytorch but cc: @jgong5

I have already submitted at intel/intel-extension-for-pytorch#571

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: intel Specific to x86 architecture triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

4 participants