Skip to content

[BUG]: CUDA_TILE_ENABLE_CRASH_DUMP=1 does not work on latest cutile #92

Description

@sanjoy

Version

1.5.0

Version

13.3

Which installation method(s) does this occur on?

Pip

Describe the bug.

This is the error I see when running with CUDA_TILE_ENABLE_CRASH_DUMP=1:

Traceback (most recent call last):
  File "/home/compiler-tile-ir/sanjoyd/workspace/cutile-mega-kernel/bugs/repro_tileiras_tm256_tf128_th256_numctas1.py", line 214, in <module>
    main()
  File "/home/compiler-tile-ir/sanjoyd/workspace/cutile-mega-kernel/bugs/repro_tileiras_tm256_tf128_th256_numctas1.py", line 203, in main
    ct.launch(
  File "/home/compiler-tile-ir/sanjoyd/workspace/cutile-mega-kernel/.venv/lib/python3.12/site-packages/cuda/tile/_execution.py", line 127, in _compile
    result = compile_tile(self._annotated_function, (signature,),
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/compiler-tile-ir/sanjoyd/workspace/cutile-mega-kernel/.venv/lib/python3.12/site-packages/cuda/tile/_compile.py", line 91, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/compiler-tile-ir/sanjoyd/workspace/cutile-mega-kernel/.venv/lib/python3.12/site-packages/cuda/tile/_compile.py", line 556, in compile_tile
    _compiler_crash_dump(ir_keeper.final_ir, func_desc.name,
  File "/home/compiler-tile-ir/sanjoyd/workspace/cutile-mega-kernel/.venv/lib/python3.12/site-packages/cuda/tile/_compile.py", line 335, in _compiler_crash_dump
    artifacts[f"{func_name}.{i}.cutileir"] = f"{func_ir.body.to_string(include_loc=False)}\n"
                                                ^^^^^^^^^^^^
AttributeError: 'Block' object has no attribute 'body'

I suspect the line just needs to be func_ir.to_string.

Minimum reproducible example

Relevant log output

Full env printout

Other/Misc.

No response

Contributing Guidelines

  • I agree to follow cuTile Python's contributing guidelines
  • I have searched the open bugs and have found no duplicates for this bug report

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions