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

to_torch segmentation fault apple metal #8353

Open
lstrgar opened this issue Sep 20, 2023 · 1 comment
Open

to_torch segmentation fault apple metal #8353

lstrgar opened this issue Sep 20, 2023 · 1 comment

Comments

@lstrgar
Copy link

lstrgar commented Sep 20, 2023

Describe the bug
Segmentation fault when converting taichi metal field to torch mps device

To Reproduce

> import taichi as ti
[Taichi] version 1.6.0, llvm 15.0.7, commit f1c6fbbd, osx, python 3.10.3

> ti.init(arch=ti.metal,)
[Taichi] Starting on arch=metal

> x = ti.field(dtype=ti.f32, shape=())
> x[None] = 1
> x.to_torch('mps')
73850 segmentation fault  ipython

Log/Screenshots

[Taichi] version 1.6.0, llvm 15.0.7, commit f1c6fbbd, osx, python 3.10.3
[Taichi] Starting on arch=metal
[1]    74506 segmentation fault  python tmp.py

Additional comments
I'm running oxs 13.0.1

@bobcao3
Copy link
Collaborator

bobcao3 commented Sep 20, 2023

Can you try using the nightly version? I think we've fixed this issue but it's not released yet.

@jim19930609 jim19930609 moved this from Untriaged to Backlog in Taichi Lang Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants