Skip to content

DaCe Framework Failing with Python 3.13 #38

@ThrudPrimrose

Description

@ThrudPrimrose

NPBench does not work with Python 3.13.

Process Process-53:
Traceback (most recent call last):
  File "/home/primrose/.pyenv/versions/3.13.3/lib/python3.13/multiprocessing/process.py", line 313, in _bootstrap
    self.run()
    ~~~~~~~~^^
  File "/home/primrose/.pyenv/versions/3.13.3/lib/python3.13/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/primrose/Work/npbench/run_framework.py", line 13, in run_benchmark
    frmwrk = generate_framework(fname, save_strict, load_strict)
  File "/home/primrose/Work/npbench/npbench/infrastructure/framework.py", line 183, in generate_framework
    frmwrk = eval(f"{info['class']}(fname, {save_strict}, {load_strict})")
  File "<string>", line 1, in <module>
NameError: name 'DaceFramework' is not defined. Did you mean: 'Framework'?
Process Process-54:
Traceback (most recent call last):
  File "/home/primrose/.pyenv/versions/3.13.3/lib/python3.13/multiprocessing/process.py", line 313, in _bootstrap
    self.run()
    ~~~~~~~~^^
  File "/home/primrose/.pyenv/versions/3.13.3/lib/python3.13/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/primrose/Work/npbench/run_framework.py", line 13, in run_benchmark
    frmwrk = generate_framework(fname, save_strict, load_strict)
  File "/home/primrose/Work/npbench/npbench/infrastructure/framework.py", line 183, in generate_framework
    frmwrk = eval(f"{info['class']}(fname, {save_strict}, {load_strict})")
  File "<string>", line 1, in <module>
NameError: name 'DaceFramework' is not defined. Did you mean: 'Framework'?

When called:

python run_framework.py -f dace_gpu -p S

or with dace_cpu. If errors are not suppressed, a previous error is thrown about not being able to load a framework from string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions