Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] IRON API and Dev Tools #1732

Draft
wants to merge 80 commits into
base: main
Choose a base branch
from
Draft

[WIP] IRON API and Dev Tools #1732

wants to merge 80 commits into from

Conversation

hunhoffe
Copy link
Collaborator

@hunhoffe hunhoffe commented Aug 27, 2024

Please ignore, not nearly ready for consideration.

Copy link
Contributor

github-actions bot commented Sep 13, 2024

Coverage Report

Created: 2024-10-14 18:21

Click here for information about interpreting this report.

FilenameFunction CoverageLine CoverageRegion CoverageBranch Coverage
Totals- - - -
Generated by llvm-cov -- llvm version 14.0.0

@hunhoffe hunhoffe force-pushed the erika-iron-brainstorming branch 2 times, most recently from 229acf4 to e103e35 Compare September 16, 2024 19:59
@hunhoffe hunhoffe changed the title [WIP] Brainstorming, ignore me. [WIP] Python Bindings / Python API Exploration Sep 20, 2024
python/extras/util.py Outdated Show resolved Hide resolved
@hunhoffe hunhoffe changed the title [WIP] Python Bindings / Python API Exploration [WIP] Ignore me, brainstorming on Python Bindings / Python API Exploration Sep 27, 2024
@hunhoffe hunhoffe changed the title [WIP] Ignore me, brainstorming on Python Bindings / Python API Exploration [WIP] IRON API and Dev Tools Oct 23, 2024
TILE_SIZE = TILE_WIDTH * TILE_HEIGHT

with mlir_mod_ctx() as ctx:
def my_matrix_add_one():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black] reported by reviewdog 🐶

Suggested change
def my_matrix_add_one():
def my_matrix_add_one():


@runtime_sequence(tile_ty, tile_ty, tile_ty)
def sequence(inTensor, _, outTensor):
npu_dma_memcpy_nd(metadata=of_in1, bd_id=1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black] reported by reviewdog 🐶

Suggested change
npu_dma_memcpy_nd(metadata=of_in1, bd_id=1,
npu_dma_memcpy_nd(
metadata=of_in1,
bd_id=1,

issue_token=True,
)

npu_dma_memcpy_nd(metadata=of_out1, bd_id=0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black] reported by reviewdog 🐶

Suggested change
npu_dma_memcpy_nd(metadata=of_out1, bd_id=0,
npu_dma_memcpy_nd(
metadata=of_out1,
bd_id=0,

TILE_HEIGHT, TILE_WIDTH = 8, 16
TILE_SIZE = TILE_WIDTH * TILE_HEIGHT

def my_matrix_add_one():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black] reported by reviewdog 🐶

Suggested change
def my_matrix_add_one():
def my_matrix_add_one():

Comment on lines +39 to +41
my_worker = Worker(core_fn,
fn_args=[of_in.second, of_out.first],
while_true=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black] reported by reviewdog 🐶

Suggested change
my_worker = Worker(core_fn,
fn_args=[of_in.second, of_out.first],
while_true=True)
my_worker = Worker(core_fn, fn_args=[of_in.second, of_out.first], while_true=True)

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