Skip to content

Update local-iperator to latest ufl/ffc/ffcx version.#29

Open
jorgensd wants to merge 1 commit intoIgorBaratta:mainfrom
jorgensd:dokken/bump
Open

Update local-iperator to latest ufl/ffc/ffcx version.#29
jorgensd wants to merge 1 commit intoIgorBaratta:mainfrom
jorgensd:dokken/bump

Conversation

@jorgensd
Copy link
Copy Markdown
Collaborator

@jorgensd jorgensd commented Jun 3, 2024

Split toml deps for each compiler.

It is unclear to me how to run tsfc or ffc with this code, as

python3 run.py --problem Elasticity  --degree 1 --form_compiler=tsfc --action --global_size 10000000
Traceback (most recent call last):
  File "/root/shared/run.py", line 74, in <module>
    results = utils.run(problem, degree, nrepeats, flag, action,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/shared/utils.py", line 78, in run
    generate_code(action, scalar_type, global_size, batch_size)
  File "/root/shared/ffcx/compile.py", line 137, in generate_code
    code = compile_form(problem.L, "kernel", parameters)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/shared/ffcx/compile.py", line 99, in compile_form
    analysis = analyze_ufl_objects([form], parameters["scalar_type"])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/test_env/lib/python3.12/site-packages/ffcx/analysis.py", line 94, in analyze_ufl_objects
    form_data = tuple(_analyze_form(form, scalar_type) for form in forms)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/test_env/lib/python3.12/site-packages/ffcx/analysis.py", line 94, in <genexpr>
    form_data = tuple(_analyze_form(form, scalar_type) for form in forms)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/test_env/lib/python3.12/site-packages/ffcx/analysis.py", line 174, in _analyze_form
    assert isinstance(i._ufl_domain._ufl_coordinate_element, basix.ufl._ElementBase)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

and

 python3 run.py --problem Elasticity  --degree 1 --form_compiler=ffc --action --global_size 10000000
Traceback (most recent call last):
  File "/root/shared/run.py", line 74, in <module>
    results = utils.run(problem, degree, nrepeats, flag, action,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/shared/utils.py", line 78, in run
    generate_code(action, scalar_type, global_size, batch_size)
  File "/root/shared/ffcx/compile.py", line 137, in generate_code
    code = compile_form(problem.L, "kernel", parameters)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/shared/ffcx/compile.py", line 99, in compile_form
    analysis = analyze_ufl_objects([form], parameters["scalar_type"])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/test_env/lib/python3.12/site-packages/ffcx/analysis.py", line 87, in analyze_ufl_objects
    elif isinstance(ufl_object[0], ufl.core.expr.Expr):
                    ~~~~~~~~~~^^^
TypeError: 'Form' object is not subscriptable

both tries to use ffcx to compile the code.

Split toml deps for each compiler.
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

Successfully merging this pull request may close these issues.

1 participant