Skip to content

[P0] Enable compiler e2e test with arch spec #189

@tancheng

Description

@tancheng

We are able to compile/lower a C++ file via lit test. However, we do want to directly call neura-compiler:

// RUN: neura-compiler --neura-conversion %s

rather than mlir-neura-opt:

// RUN: mlir-neura-opt %t-relu.mlir\

For neura-compiler, we need to pass in architecture.yaml:

// RUN: --architecture-spec=../../arch_spec/architecture.yaml \

Please check/track these code to make sure architecture.yaml can be recognized by the map-to-accelerator pass:

std::string architecture_spec_file = mlir::neura::getArchitectureSpecFile();
, and also be captured by the GenerateCodePass.

A proper design seems make the neura-compiler itself could build the architecture based on the spec, and pass in the const arch to both passes.

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions