Skip to content

Conversation

AndraBisca
Copy link
Collaborator

@AndraBisca AndraBisca commented Aug 13, 2025

This PR introduces getting_started IRON programming examples:

  • memcpy
  • SAXPY
  • vector_reduce_max
  • matrix_multiplication_single_core

These designs are self-contained, with fixed problem sizes, and aim to introduce users to IRON and NPU capabilities. All designs are developed using the JIT workflow.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

clang-format

[clang-format] reported by reviewdog 🐶

// Print elapsed time
constexpr unsigned n_ops = M * K * N * 2;
float throughput = n_ops / t_elapsed / 1e3; // GOP/s
std::cout << "Elapsed: " << t_elapsed << " us "
<< "(" << throughput << " GOP/s)" << std::endl;


[clang-format] reported by reviewdog 🐶

// Validate correctness of output
int16_t *ref_c = static_cast<int16_t *>(std::malloc(M * N * sizeof(int16_t))); // reference output calculated on the CPU
reference(buf_a, buf_b, ref_c);


[clang-format] reported by reviewdog 🐶

if (std::equal(ref_c, ref_c + size_c, buf_c)) {
std::cout << "PASS!" << std::endl;
} else {
std::cout << "FAIL." << std::endl;
return 1;
}


[clang-format] reported by reviewdog 🐶

Copy link
Contributor

github-actions bot commented Aug 13, 2025

Coverage Report

Created: 2025-09-04 21:53

Click here for information about interpreting this report.

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

Co-authored-by: Muhammad Awad <112003944+mawad-amd@users.noreply.github.com>
@AndraBisca
Copy link
Collaborator Author

Thank you @mawad-amd and @ypapadop-amd for the comments and suggestions. I will apply them now!

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.

7 participants