Skip to content

How to generate the json file like optim/indictor-misc.json? #10

@syheliel

Description

@syheliel

First, thanks for your awesome work in OOPSLA! I'm trying to reproduce the result and I find that In optim dir, there are json files that record the mapping from the name of the optimization pass and the source code. The following is the source code of indictor-misc.json:


  "randperm_index_add_pattern": {
    "hints": [
      {
        "type": "pattern",
        "codes": [
          "source-code-data/pytorch/inductor-misc/randperm_index_add_pattern.py"
        ]
      }
    ]
  },
  "randperm_index_pattern": {
    "hints": [
      {
        "type": "pattern",
        "codes": [
          "source-code-data/pytorch/inductor-misc/randperm_index_pattern.py"
        ]
      }
    ]
  }
}

Is there a script that can create these file from Pytorch's source code? It seems that I need to create it by hand if I want to test a new opt pass.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions