Skip to content

[Issue]: change_current_allocator failed #175

@hebais

Description

@hebais

Problem Description

when import iris, I have encountered this error
RuntimeError: Can't swap an already initialized allocator, since torch could not change allocator once it is already initialized.
I have commented this torch.cuda.memory.change_current_allocator and it seems the example still works correctly.

So what might be the side effect if I commented this hip allocator ? Actually I did not quite understand why it becomes fine grained after switch to hip Allocator. Thanks

Operating System

22.04.5 LTS (Jammy Jellyfish)

CPU

Intel(R) Xeon(R) Platinum 8458P

GPU

MI300X

ROCm Version

ROCm 6.3

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

irisIris project issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions