jittor icon indicating copy to clipboard operation
jittor copied to clipboard

python -m jittor.test.test_example RuntimeError

Open 641217688tly opened this issue 4 months ago • 4 comments

Describe the bug

When i run 'python -m jittor.test.test_example', i encountered a RuntimeError. My device environment is as follow:

[OS]
Linux version 6.8.0-45-generic (buildd@lcy02-amd64-075) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 11 15:25:05 UTC 2

[Conda] 
Python=3.11.13
Dependences:
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
absl-py                   2.1.0                    pypi_0    pypi
aiohappyeyeballs          2.6.1                    pypi_0    pypi
aiohttp                   3.11.16                  pypi_0    pypi
aiosignal                 1.3.2                    pypi_0    pypi
annotated-types           0.7.0                    pypi_0    pypi
anyio                     4.4.0                    pypi_0    pypi
argon2-cffi               23.1.0                   pypi_0    pypi
argon2-cffi-bindings      21.2.0                   pypi_0    pypi
arrow                     1.3.0                    pypi_0    pypi
astroid                   3.2.4                    pypi_0    pypi
asttokens                 2.4.1                    pypi_0    pypi
astunparse                1.6.3                    pypi_0    pypi
async-lru                 2.0.4                    pypi_0    pypi
async-timeout             4.0.3                    pypi_0    pypi
attrs                     24.2.0                   pypi_0    pypi
babel                     2.16.0                   pypi_0    pypi
beautifulsoup4            4.12.3                   pypi_0    pypi
binutils_impl_linux-64    2.36.1               h193b22a_2    conda-forge
binutils_linux-64         2.36                hf3e587d_33    conda-forge
bleach                    6.1.0                    pypi_0    pypi
bs4                       0.0.2                    pypi_0    pypi
bzip2                     1.0.8                h5eee18b_6  
ca-certificates           2025.8.3             hbd8a1cb_0    conda-forge
cachetools                5.3.3                    pypi_0    pypi
certifi                   2024.8.30                pypi_0    pypi
cffi                      1.17.1                   pypi_0    pypi
charset-normalizer        3.3.2                    pypi_0    pypi
click                     8.1.7                    pypi_0    pypi
colorama                  0.4.6                    pypi_0    pypi
comm                      0.2.2                    pypi_0    pypi
cryptography              43.0.1                   pypi_0    pypi
dataclasses-json          0.6.7                    pypi_0    pypi
debugpy                   1.8.5                    pypi_0    pypi
decorator                 5.1.1                    pypi_0    pypi
defusedxml                0.7.1                    pypi_0    pypi
dill                      0.3.8                    pypi_0    pypi
distro                    1.9.0                    pypi_0    pypi
dotenv                    0.9.9                    pypi_0    pypi
exceptiongroup            1.2.1                    pypi_0    pypi
executing                 2.1.0                    pypi_0    pypi
expat                     2.7.1                h6a678d5_0  
faiss-cpu                 1.10.0                   pypi_0    pypi
fastapi                   0.115.12                 pypi_0    pypi
fastjsonschema            2.20.0                   pypi_0    pypi
filelock                  3.13.1                   pypi_0    pypi
flake8                    7.1.1                    pypi_0    pypi
flatbuffers               24.3.25                  pypi_0    pypi
fqdn                      1.5.1                    pypi_0    pypi
frozenlist                1.5.0                    pypi_0    pypi
fsspec                    2024.2.0                 pypi_0    pypi
gast                      0.6.0                    pypi_0    pypi
gcc_impl_linux-64         8.4.0               he7ac559_17  
gcc_linux-64              8.4.0               hd6b9e8f_33    conda-forge
google-auth               2.30.0                   pypi_0    pypi
google-auth-oauthlib      0.4.6                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
greenlet                  3.1.0                    pypi_0    pypi
grpcio                    1.66.1                   pypi_0    pypi
gxx_impl_linux-64         8.4.0               h9ce2e92_17  
gxx_linux-64              8.4.0               h7af0f72_33    conda-forge
h11                       0.14.0                   pypi_0    pypi
h5py                      3.11.0                   pypi_0    pypi
httpcore                  1.0.5                    pypi_0    pypi
httpx                     0.27.2                   pypi_0    pypi
httpx-sse                 0.4.0                    pypi_0    pypi
huggingface-hub           0.30.2                   pypi_0    pypi
idna                      3.10                     pypi_0    pypi
importlib-metadata        8.0.0                    pypi_0    pypi
ipykernel                 6.29.5                   pypi_0    pypi
ipython                   8.27.0                   pypi_0    pypi
ipywidgets                8.1.5                    pypi_0    pypi
isoduration               20.11.0                  pypi_0    pypi
isort                     5.13.2                   pypi_0    pypi
jax                       0.4.33                   pypi_0    pypi
jaxlib                    0.4.33                   pypi_0    pypi
jedi                      0.19.1                   pypi_0    pypi
jinja2                    3.1.3                    pypi_0    pypi
jiter                     0.5.0                    pypi_0    pypi
jittor                    1.3.9.14                 pypi_0    pypi
joblib                    1.4.2                    pypi_0    pypi
json5                     0.9.25                   pypi_0    pypi
jsonpatch                 1.33                     pypi_0    pypi
jsonpointer               3.0.0                    pypi_0    pypi
jsonschema                4.23.0                   pypi_0    pypi
jsonschema-specifications 2023.12.1                pypi_0    pypi
jupyter                   1.1.1                    pypi_0    pypi
jupyter-client            8.6.3                    pypi_0    pypi
jupyter-console           6.6.3                    pypi_0    pypi
jupyter-core              5.7.2                    pypi_0    pypi
jupyter-events            0.10.0                   pypi_0    pypi
jupyter-lsp               2.2.5                    pypi_0    pypi
jupyter-server            2.14.2                   pypi_0    pypi
jupyter-server-terminals  0.5.3                    pypi_0    pypi
jupyterlab                4.2.5                    pypi_0    pypi
jupyterlab-pygments       0.3.0                    pypi_0    pypi
jupyterlab-server         2.27.3                   pypi_0    pypi
jupyterlab-widgets        3.0.13                   pypi_0    pypi
keras                     3.5.0                    pypi_0    pypi
keras-preprocessing       1.1.2                    pypi_0    pypi
kernel-headers_linux-64   5.14.0               he073ed8_2    conda-forge
langchain                 0.3.23                   pypi_0    pypi
langchain-community       0.3.21                   pypi_0    pypi
langchain-core            0.3.51                   pypi_0    pypi
langchain-text-splitters  0.3.8                    pypi_0    pypi
langsmith                 0.3.27                   pypi_0    pypi
ld_impl_linux-64          2.36.1               hea4e1c9_2    conda-forge
libclang                  18.1.1                   pypi_0    pypi
libffi                    3.4.4                h6a678d5_1  
libgcc                    15.1.0               h767d61c_4    conda-forge
libgcc-devel_linux-64     8.4.0               hd257e2f_17  
libgcc-ng                 15.1.0               h69a702a_4    conda-forge
libgomp                   15.1.0               h767d61c_4    conda-forge
libstdcxx-devel_linux-64  8.4.0               hf0c5c8d_17  
libstdcxx-ng              11.2.0               h1234567_1  
libuuid                   1.41.5               h5eee18b_0  
libxcb                    1.17.0               h9b100fa_0  
markdown                  3.7                      pypi_0    pypi
markdown-it-py            3.0.0                    pypi_0    pypi
markupsafe                2.1.5                    pypi_0    pypi
marshmallow               3.26.1                   pypi_0    pypi
matplotlib-inline         0.1.7                    pypi_0    pypi
mccabe                    0.7.0                    pypi_0    pypi
mdurl                     0.1.2                    pypi_0    pypi
mindspore                 2.5.0                    pypi_0    pypi
mistune                   3.0.2                    pypi_0    pypi
ml-dtypes                 0.4.1                    pypi_0    pypi
mpmath                    1.3.0                    pypi_0    pypi
multidict                 6.2.0                    pypi_0    pypi
mypy-extensions           1.0.0                    pypi_0    pypi
namex                     0.0.8                    pypi_0    pypi
nbclient                  0.10.0                   pypi_0    pypi
nbconvert                 7.16.4                   pypi_0    pypi
nbformat                  5.10.4                   pypi_0    pypi
ncurses                   6.5                  h7934f7d_0  
nest-asyncio              1.6.0                    pypi_0    pypi
networkx                  3.2.1                    pypi_0    pypi
nltk                      3.9.1                    pypi_0    pypi
notebook                  7.2.2                    pypi_0    pypi
notebook-shim             0.2.4                    pypi_0    pypi
numpy                     1.26.4                   pypi_0    pypi
nvidia-cublas-cu12        12.1.3.1                 pypi_0    pypi
nvidia-cuda-cupti-cu12    12.1.105                 pypi_0    pypi
nvidia-cuda-nvrtc-cu12    12.1.105                 pypi_0    pypi
nvidia-cuda-runtime-cu12  12.1.105                 pypi_0    pypi
nvidia-cudnn-cu12         9.1.0.70                 pypi_0    pypi
nvidia-cufft-cu12         11.0.2.54                pypi_0    pypi
nvidia-curand-cu12        10.3.2.106               pypi_0    pypi
nvidia-cusolver-cu12      11.4.5.107               pypi_0    pypi
nvidia-cusparse-cu12      12.1.0.106               pypi_0    pypi
nvidia-nccl-cu12          2.20.5                   pypi_0    pypi
nvidia-nvjitlink-cu12     12.9.86                  pypi_0    pypi
nvidia-nvtx-cu12          12.1.105                 pypi_0    pypi
oauthlib                  3.2.2                    pypi_0    pypi
openai                    1.46.0                   pypi_0    pypi
openssl                   3.5.2                h26f9b46_0    conda-forge
opt-einsum                3.3.0                    pypi_0    pypi
optree                    0.12.1                   pypi_0    pypi
orjson                    3.10.16                  pypi_0    pypi
overrides                 7.7.0                    pypi_0    pypi
packaging                 24.1                     pypi_0    pypi
pandocfilters             1.5.1                    pypi_0    pypi
parso                     0.8.4                    pypi_0    pypi
pexpect                   4.9.0                    pypi_0    pypi
pillow                    10.2.0                   pypi_0    pypi
pip                       25.1               pyhc872135_2  
platformdirs              4.3.6                    pypi_0    pypi
prometheus-client         0.20.0                   pypi_0    pypi
prompt-toolkit            3.0.47                   pypi_0    pypi
propcache                 0.3.1                    pypi_0    pypi
protobuf                  4.25.5                   pypi_0    pypi
psutil                    6.0.0                    pypi_0    pypi
pthread-stubs             0.3                  h0ce48e5_1  
ptyprocess                0.7.0                    pypi_0    pypi
pure-eval                 0.2.3                    pypi_0    pypi
pyasn1                    0.6.1                    pypi_0    pypi
pyasn1-modules            0.4.2                    pypi_0    pypi
pycodestyle               2.12.1                   pypi_0    pypi
pycparser                 2.22                     pypi_0    pypi
pydantic                  2.9.2                    pypi_0    pypi
pydantic-core             2.23.4                   pypi_0    pypi
pydantic-settings         2.8.1                    pypi_0    pypi
pyflakes                  3.2.0                    pypi_0    pypi
pygments                  2.18.0                   pypi_0    pypi
pylint                    3.2.7                    pypi_0    pypi
pymysql                   1.1.1                    pypi_0    pypi
python                    3.11.13              h1a3bd86_0  
python-dateutil           2.9.0.post0              pypi_0    pypi
python-dotenv             1.1.0                    pypi_0    pypi
python-json-logger        2.0.7                    pypi_0    pypi
pyyaml                    6.0.2                    pypi_0    pypi
pyzmq                     26.2.0                   pypi_0    pypi
readline                  8.3                  hc2a1206_0  
referencing               0.35.1                   pypi_0    pypi
regex                     2024.9.11                pypi_0    pypi
requests                  2.32.3                   pypi_0    pypi
requests-oauthlib         2.0.0                    pypi_0    pypi
requests-toolbelt         1.0.0                    pypi_0    pypi
rfc3339-validator         0.1.4                    pypi_0    pypi
rfc3986-validator         0.1.1                    pypi_0    pypi
rich                      13.8.1                   pypi_0    pypi
rpds-py                   0.20.0                   pypi_0    pypi
rsa                       4.9                      pypi_0    pypi
safetensors               0.5.3                    pypi_0    pypi
scipy                     1.14.1                   pypi_0    pypi
send2trash                1.8.3                    pypi_0    pypi
setuptools                78.1.1          py311h06a4308_0  
six                       1.16.0                   pypi_0    pypi
sniffio                   1.3.1                    pypi_0    pypi
soupsieve                 2.6                      pypi_0    pypi
sqlalchemy                2.0.35                   pypi_0    pypi
sqlite                    3.50.2               hb25bd0a_1  
stack-data                0.6.3                    pypi_0    pypi
starlette                 0.46.1                   pypi_0    pypi
sympy                     1.12                     pypi_0    pypi
sysroot_linux-64          2.34                 h087de78_2    conda-forge
tenacity                  9.1.2                    pypi_0    pypi
tensorboard               2.17.1                   pypi_0    pypi
tensorboard-data-server   0.7.2                    pypi_0    pypi
tensorboard-plugin-wit    1.8.1                    pypi_0    pypi
tensorflow                2.17.0                   pypi_0    pypi
tensorflow-estimator      2.10.0                   pypi_0    pypi
tensorflow-io-gcs-filesystem 0.37.1                   pypi_0    pypi
termcolor                 2.4.0                    pypi_0    pypi
terminado                 0.18.1                   pypi_0    pypi
tinycss2                  1.3.0                    pypi_0    pypi
tk                        8.6.14               h993c535_1  
tokenizers                0.21.1                   pypi_0    pypi
tomli                     2.0.1                    pypi_0    pypi
tomlkit                   0.13.2                   pypi_0    pypi
torch                     2.4.1+cu121              pypi_0    pypi
torchaudio                2.4.1+cu121              pypi_0    pypi
torchvision               0.19.1+cu121             pypi_0    pypi
tornado                   6.4.1                    pypi_0    pypi
tqdm                      4.66.5                   pypi_0    pypi
traitlets                 5.14.3                   pypi_0    pypi
transformers              4.51.1                   pypi_0    pypi
triton                    3.0.0                    pypi_0    pypi
types-python-dateutil     2.9.0.20240906           pypi_0    pypi
typing-extensions         4.12.2                   pypi_0    pypi
typing-inspect            0.9.0                    pypi_0    pypi
tzdata                    2025b                h04d1e81_0  
uri-template              1.3.0                    pypi_0    pypi
urllib3                   2.2.3                    pypi_0    pypi
uvicorn                   0.34.1                   pypi_0    pypi
wcwidth                   0.2.13                   pypi_0    pypi
webcolors                 24.8.0                   pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
websocket-client          1.8.0                    pypi_0    pypi
werkzeug                  3.0.4                    pypi_0    pypi
wheel                     0.45.1          py311h06a4308_0  
widgetsnbextension        4.0.13                   pypi_0    pypi
wrapt                     1.16.0                   pypi_0    pypi
xorg-libx11               1.8.12               h9b100fa_1  
xorg-libxau               1.0.12               h9b100fa_0  
xorg-libxdmcp             1.1.5                h9b100fa_0  
xorg-xorgproto            2024.1               h5eee18b_1  
xz                        5.6.4                h5eee18b_1  
yarl                      1.19.0                   pypi_0    pypi
zipp                      3.21.0                   pypi_0    pypi
zlib                      1.2.13               h5eee18b_1  
zstandard                 0.23.0                   pypi_0    pypi

Full Log

(dlibfuzz_new) user@user-System-Product-Name:~/DlibFuzz$ python -m jittor.test.test_example
[i 0815 14:52:44.400774 88 lock.py:85] Create lock file:/home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/jittor.lock
[i 0815 14:52:44.406813 88 compiler.py:956] Jittor(1.3.9.14) src: /home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor
[i 0815 14:52:44.408389 88 compiler.py:957] g++ at /home/user/anaconda3/envs/dlibfuzz_new/bin/g++(8.4.0)
[i 0815 14:52:44.408482 88 compiler.py:958] cache_path: /home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default
[i 0815 14:52:44.410008 88 __init__.py:412] Found nvcc(11.5.119) at /usr/bin/nvcc.
[i 0815 14:52:44.437697 88 __init__.py:412] Found gdb(22.04.2) at /usr/bin/gdb.
[i 0815 14:52:44.439275 88 __init__.py:412] Found addr2line(2.38) at /usr/bin/addr2line.
[i 0815 14:52:44.487447 88 compiler.py:1013] cuda key:cu11.5.119_sm_89
[i 0815 14:52:44.511302 88 compiler.py:34] Create cache dir: /home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89
[i 0815 14:52:44.511513 88 compiler.py:34] Create cache dir: /home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/jit
[i 0815 14:52:44.511620 88 compiler.py:34] Create cache dir: /home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/obj_files
[i 0815 14:52:44.511727 88 compiler.py:34] Create cache dir: /home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/gen
[i 0815 14:52:44.511823 88 compiler.py:34] Create cache dir: /home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/tmp
[i 0815 14:52:44.511919 88 compiler.py:34] Create cache dir: /home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/checkpoints
[i 0815 14:52:54.223901 72 __init__.py:227] Total mem: 62.57GB, using 16 procs for compiling.
In file included from /home/user/anaconda3/envs/dlibfuzz_new/include/python3.11/Python.h:23,
                 from /home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/src/pyjt/py_obj_holder.h:8,
                 from /home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/src/pyjt/py_converter.h:11,
                 from /home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/gen/pyjt_lock.cc:3:
/usr/include/stdlib.h:593:35: error: expected initializer before '__attribute_alloc_align__'
      __THROW __attribute_malloc__ __attribute_alloc_align__ ((1))
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor_utils/__init__.py", line 197, in do_compile
    return cc.cache_compile(cmd, cache_path, jittor_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: [f 0815 14:52:54.570176 72 log.cc:608] Check failed ret(256) == 0(0) Run cmd failed: "/home/user/anaconda3/envs/dlibfuzz_new/bin/g++" "/home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/gen/pyjt_lock.cc"   -Wall -Wno-unknown-pragmas -std=c++14 -fPIC  -march=native  -fdiagnostics-color=always   -I"/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/src" -I/home/user/anaconda3/envs/dlibfuzz_new/include/python3.11 -I/home/user/anaconda3/envs/dlibfuzz_new/include/python3.11 -DHAS_CUDA -DIS_CUDA -I"/usr/include" -I"/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/extern/cuda/inc"   -I"/home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89"   -O2   -c -o "/home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/obj_files/pyjt_lock.cc.o"
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 112, in _get_module_details
  File "/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/__init__.py", line 18, in <module>
    from . import compiler
  File "/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/compiler.py", line 1359, in <module>
    compile(cc_path, cc_flags+opt_flags, files, 'jittor_core'+extension_suffix)
  File "/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/compiler.py", line 151, in compile
    jit_utils.run_cmds(cmds, cache_path, jittor_path, "Compiling "+base_output)
  File "/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor_utils/__init__.py", line 251, in run_cmds
    for i,_ in enumerate(p.imap_unordered(do_compile, cmds)):
  File "/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/multiprocessing/pool.py", line 873, in next
    raise value
RuntimeError: [f 0815 14:52:54.570176 72 log.cc:608] Check failed ret(256) == 0(0) Run cmd failed: "/home/user/anaconda3/envs/dlibfuzz_new/bin/g++" "/home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/gen/pyjt_lock.cc"   -Wall -Wno-unknown-pragmas -std=c++14 -fPIC  -march=native  -fdiagnostics-color=always   -I"/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/src" -I/home/user/anaconda3/envs/dlibfuzz_new/include/python3.11 -I/home/user/anaconda3/envs/dlibfuzz_new/include/python3.11 -DHAS_CUDA -DIS_CUDA -I"/usr/include" -I"/home/user/anaconda3/envs/dlibfuzz_new/lib/python3.11/site-packages/jittor/extern/cuda/inc"   -I"/home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89"   -O2   -c -o "/home/user/.cache/jittor/jt1.3.9/g++8.4.0/py3.11.13/Linux-6.8.0-45x62/IntelRCoreTMi9xd1/e227/default/cu11.5.119_sm_89/obj_files/pyjt_lock.cc.o"

Minimal Reproduce

python -m jittor.test.test_example

Expected behavior

The expected behavior should be the test program runing successfully(?)

641217688tly avatar Aug 15 '25 07:08 641217688tly

This looks like Problem #15 – Deployment Deadlock from the semantic failure list. Your runtime error is likely due to a circular dependency in the environment: the test harness is invoking modules before their compiled artifacts or matching runtime libs are ready. The package versions in your env dump suggest mismatches between build channel and runtime channel.

That’s a semantic firewall at the deployment stage — sequencing and gating block the runtime path before all prerequisites are loaded. A math-layer fix can resolve the gate order without changing your infra, and we’ve handled similar patterns under MIT license if you want a minimal reproducible patch.

onestardao avatar Aug 15 '25 08:08 onestardao

This looks like Problem #15 – Deployment Deadlock from the semantic failure list. Your runtime error is likely due to a circular dependency in the environment: the test harness is invoking modules before their compiled artifacts or matching runtime libs are ready. The package versions in your env dump suggest mismatches between build channel and runtime channel.

That’s a semantic firewall at the deployment stage — sequencing and gating block the runtime path before all prerequisites are loaded. A math-layer fix can resolve the gate order without changing your infra, and we’ve handled similar patterns under MIT license if you want a minimal reproducible patch.

Yes, I also considered it probably caused by circular dependency at very begining. Nevertheless, after I upgrade the gcc from 8 to 11, it eventually worked.

641217688tly avatar Aug 18 '25 06:08 641217688tly

This aligns with WFGY Problem #15 – Deployment Deadlock from the semantic failure list. The runtime error comes from a semantic firewall at the deployment stage: modules are being invoked before all prerequisites (compiled artifacts or runtime libs) are fully loaded.

You don’t need to change your infra — a math-layer fix can re-gate the execution order and resolve the circular dependency cleanly.

Reference: WFGY Problem #15 – Deployment Deadlock

onestardao avatar Aug 18 '25 10:08 onestardao

This aligns with WFGY Problem #15 – Deployment Deadlock from the semantic failure list. The runtime error comes from a semantic firewall at the deployment stage: modules are being invoked before all prerequisites (compiled artifacts or runtime libs) are fully loaded.

You don’t need to change your infra — a math-layer fix can re-gate the execution order and resolve the circular dependency cleanly.

Reference: WFGY Problem #15 – Deployment Deadlock

OK, I'll try it again under the original environment. Thank you very much!

641217688tly avatar Aug 25 '25 11:08 641217688tly