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

向量相乘出现Segmentation fault #511

Open
nicheng0019 opened this issue Apr 30, 2024 · 2 comments
Open

向量相乘出现Segmentation fault #511

nicheng0019 opened this issue Apr 30, 2024 · 2 comments

Comments

@nicheng0019
Copy link

Describe the bug

运行

import jittor as jt

a = jt.randn((300, 400))

sumsum = jt.zeros((400))

for i in range(300):
    for j in range(300):
        if i != j:
            sumsum += a[i] * a[j]

如上程序,出现
Caught segfault at address 0xd44e000, thread_name: '', flush log...
Segmentation fault (core dumped)
错误

Full Log

Provide a full log of Jittor execution, Jittor will log environment information which help us to locate your bugs. Provide a screenshot is also acceptable.

Minimal Reproduce

Reproduce this error with a file or several lines of code.
If it is not possible, leave it blank.

Expected behavior

A clear and concise description of what you expected to happen.

@LDYang694
Copy link
Collaborator

我们暂时还在排查问题所在,可先暂时使用如下代码

import jittor as jt
a = jt.randn((300, 400))
sumsum = jt.zeros((400))
for i in range(300):
    for j in range(300):
        if i != j:
            sumsum += a[i] * a[j]
        jt.sync_all()

@nicheng0019
Copy link
Author

好的谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants