OpenCGRA icon indicating copy to clipboard operation
OpenCGRA copied to clipboard

install BUG

Open aiiiii96 opened this issue 1 year ago • 2 comments

Hi,Cheng: I'm very glad to meet such a strong CGRA simulator! After I followed the instruction step by step, I met the error: =================================== FAILURES =================================== _____________________________ test_cgra_universal ______________________________ CGRARTL_test.py:116: in test_cgra_universal DataType = mk_data( 32, 1 ) ../../lib/messages.py:36: in mk_data namespace = { 'str': str_func } /home/ai/venv/lib/python3.7/site-packages/pymtl3/datatypes/bitstructs.py:557: in mk_bitstruct add_repr=add_repr, add_hash=add_hash ) /home/ai/venv/lib/python3.7/site-packages/pymtl3/datatypes/bitstructs.py:529: in bitstruct return wrap( _cls ) /home/ai/venv/lib/python3.7/site-packages/pymtl3/datatypes/bitstructs.py:522: in wrap return _process_class( cls, add_init, add_str, add_repr ) /home/ai/venv/lib/python3.7/site-packages/pymtl3/datatypes/bitstructs.py:457: in _process_class cls.init = _mk_init_fn( _get_self_name(fields), fields ) /home/ai/venv/lib/python3.7/site-packages/pymtl3/datatypes/bitstructs.py:191: in _mk_init_fn _globals = _globals, /home/ai/venv/lib/python3.7/site-packages/pymtl3/datatypes/bitstructs.py:107: in _create_fn custom_exec( py.code.Source(src).compile(), _globals, _locals ) E AttributeError: module 'py' has no attribute 'code'

by the way: ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-7.4.4, pluggy-1.2.0 -- /home/ai/venv/bin/python3 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/ai/cgra/OpenCGRA/cgra/translate/.hypothesis/examples') rootdir: /home/ai/cgra/OpenCGRA configfile: pytest.ini plugins: pymtl3-0.5.5.1, hypothesis-6.79.4 collected 1 item

Could you help me? Have a nice Day! Thanks!

aiiiii96 avatar Feb 29 '24 02:02 aiiiii96

Hi, you can try the docker provided in https://github.com/tancheng/CGRA-Flow or follow the instructions in https://github.com/tancheng/VectorCGRA

Let me know if those work for you. You can raise issues in those repos.

tancheng avatar Feb 29 '24 07:02 tancheng

Hi, you can try the docker provided in https://github.com/tancheng/CGRA-Flow or follow the instructions in https://github.com/tancheng/VectorCGRA

Let me know if those work for you. You can raise issues in those repos.

thanks for your rapid reply! the vector-cgra solution is efficient.

aiiiii96 avatar Mar 01 '24 05:03 aiiiii96