| शीर्षक | pytorch pytorch (in torch.cuda.memory.caching_allocator_delete) torch 2.6.0 invalid memory access |
|---|
| विवरण | When attempting to manually delete a tensor's memory using `torch.cuda.memory.caching_allocator_delete` after allocating memory on the GPU with `torch.empty`, I encounter an `Aborted` error.
To reproduce:
```
import torch
from torch.cuda.memory import caching_allocator_delete
torch.cuda.empty_cache()
dev_props = torch.cuda.get_device_properties(0)
total_memory = dev_props.total_memory
allocation = int(total_memory * 0.5)
tmp_tensor = torch.empty(allocation, dtype=torch.int8, device='cuda')
mem_ptr = tmp_tensor.data_ptr()
caching_allocator_delete(mem_ptr)
``` |
|---|
| स्रोत | ⚠️ https://github.com/pytorch/pytorch/issues/149821 |
|---|
| उपयोगकर्ता | Default436352 (UID 81891) |
|---|
| सबमिशन | 23/03/2025 02:26 AM (2 साल पहले) |
|---|
| संयम | 02/04/2025 10:47 PM (11 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 303041 [PyTorch 2.6.0 CUDACachingAllocator.cpp torch.cuda.memory.caching_allocator_delete बफ़र ओवरफ़्लो] |
|---|
| अंक | 20 |
|---|