Commit 5285da5
Not ready for review (#148)
Summary:
Pull Request resolved: #148
Attempt to fix torchsnapshot CI: https://github.com/pytorch/torchsnapshot/actions/runs/5766115388/job/15694536972
```
tests/test_uvm_tensor.py::test_uvm_tensor FAILED [100%]
=================================== FAILURES ===================================
_______________________________ test_uvm_tensor ________________________________
pytest.mark.cpu_and_gpu
def test_uvm_tensor() -> None:
if torch.cuda.is_available() and _UVM_TENSOR_AVAILABLE:
uvm_tensor = torch.rand(
(64, 64),
> out=new_managed_tensor(
torch.empty(0, dtype=torch.float32, device="cuda:0"),
[64, 64],
),
)
tests/test_uvm_tensor.py:25:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <OpOverloadPacket(op='fbgemm.new_managed_tensor')>
args = (tensor([], device='cuda:0'), [64, 64]), kwargs = {}
def __call__(self, *args, **kwargs):
# overloading __call__ to ensure torch.ops.foo.bar()
# is still callable from JIT
# We save the function ptr as the `op` attribute on
# OpOverloadPacket to access it here.
> return self._op(*args, **kwargs or {})
E RuntimeError: CUDA error: invalid device ordinal
E CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
E For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
E Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
```
Differential Revision: D48135206
fbshipit-source-id: 46cbe45ebc8e135740b9d752abc2c1a2a1042cc91 parent 77ec968 commit 5285da5
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
26 | | - | |
| 33 | + | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
| |||
0 commit comments