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

Error happend during compilatio in jt.init.eye #515

Open
x0w3n opened this issue May 8, 2024 · 0 comments
Open

Error happend during compilatio in jt.init.eye #515

x0w3n opened this issue May 8, 2024 · 0 comments

Comments

@x0w3n
Copy link

x0w3n commented May 8, 2024

Describe the bug

When a very large value is given to the parameter jt.init.eye, a Compilation failure occurs, causing the code to not run. This should be replaced with runtime error instead of direct Compilation failure.

Full Log

[i 0507 20:18:37.634195 32 compiler.py:956] Jittor(1.3.8.5) src: /root/anaconda3/envs/jt/lib/python3.7/site-packages/jittor
[i 0507 20:18:37.637027 32 compiler.py:957] g++ at /usr/bin/g++(11.4.0)
[i 0507 20:18:37.637092 32 compiler.py:958] cache_path: /root/.cache/jittor/jt1.3.8/g++11.4.0/py3.7.0/Linux-6.5.0-27xd2/IntelRXeonRGolx8d/default
[i 0507 20:18:37.640747 32 __init__.py:411] Found nvcc(12.1.105) at /usr/local/cuda/bin/nvcc.
[i 0507 20:18:37.692159 32 __init__.py:411] Found gdb(12.1) at /usr/bin/gdb.
[i 0507 20:18:37.695348 32 __init__.py:411] Found addr2line(2.38) at /usr/bin/addr2line.
[i 0507 20:18:37.776720 32 compiler.py:1011] cuda key:cu12.1.105_sm_86
[i 0507 20:18:38.109537 32 __init__.py:227] Total mem: 219.97GB, using 16 procs for compiling.
[i 0507 20:18:38.181912 32 jit_compiler.cc:28] Load cc_path: /usr/bin/g++
[i 0507 20:18:38.253350 32 init.cc:62] Found cuda archs: [86,]
Traceback (most recent call last):
  File "test.py", line 4, in <module>
    jt.init.eye(1000000,3948000418890973690)  #crash
  File "/root/anaconda3/envs/jt/lib/python3.7/site-packages/jittor/init.py", line 41, in eye
    return (index[0]==index[1]).unary(dtype)
RuntimeError: Wrong inputs arguments, Please refer to examples(help(jt.unary)).

Types of your inputs are:
 self   = Var,
 args   = (int, ),

The function declarations are:
 VarHolder* unary(VarHolder* x,  NanoString op)

Failed reason:[f 0507 20:18:38.560844 32 pyjt_jit_op_maker.cc:1809] Not a valid call.

Minimal Reproduce

import jittor as jt
from jittor import *
jt.init.eye(1000000,3948000418890973690)

Expected behavior

This should be replaced by a runtime error instead of a direct Compilation failure, i.e. it need to add the corresponding check function

@x0w3n x0w3n changed the title Compilation failure in jt.init.eye Error happend during compilatio in jt.init.eye May 8, 2024
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

1 participant