Skip to content

Commit

Permalink
MLIR Learning Resources post
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Abdelkader committed Apr 27, 2024
1 parent 019135f commit 94dd502
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 15 deletions.
7 changes: 4 additions & 3 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
main:
- title: "Resume"
url: /resume/

- title: "Posts"
url: /posts/

- title: "Resume"
url: /resume/

2 changes: 1 addition & 1 deletion _includes/social-share.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label |
{% endif %}
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}" class="btn btn--linkedin" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} LinkedIn"><i class="fab fa-fw fa-linkedin" aria-hidden="true"></i><span> LinkedIn</span></a>

<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" class="btn btn--facebook" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Facebook"><i class="fab fa-fw fa-facebook" aria-hidden="true"></i><span> Facebook</span></a>
<!-- <a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" class="btn btn--facebook" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Facebook"><i class="fab fa-fw fa-facebook" aria-hidden="true"></i><span> Facebook</span></a> -->

<a href="https://twitter.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username | url_encode }}&{% endif %}text={{ page.title | url_encode }}%20{{ page.url | absolute_url | url_encode }}" class="btn btn--twitter" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Twitter"><i class="fab fa-fw fa-twitter" aria-hidden="true"></i><span> Twitter</span></a>

Expand Down
6 changes: 6 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
-->

<!--
Resume page /resume/ is based on resume-template theme by Joel Glovier
Copyright (c) 2015 Joel Glovier | @jglovier
https://github.com/jglovier/resume-template/blob/gh-pages/LICENSE
-->
<html lang="{{ site.locale | slice: 0,2 | default: "en" }}" class="no-js">
<head>
{% include head.html %}
Expand Down
6 changes: 5 additions & 1 deletion _layouts/resume.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
layout: single
---
<body class="theme-{% if site.resume_theme %}{{ site.resume_theme }}{% endif %}">

<!--
This webpage is based on resume-template theme by Joel Glovier
Copyright (c) 2015 Joel Glovier | @jglovier
https://github.com/jglovier/resume-template/blob/gh-pages/LICENSE
-->
<div class="wrapper" itemscope itemtype="http://schema.org/Person">
<meta itemprop="telephone" content="{{ site.resume_contact_telephone }}"/>
<meta itemprop="address" content="{{ site.resume_contact_address }}"/>
Expand Down
8 changes: 0 additions & 8 deletions _posts/2010-01-07-post-standard.md

This file was deleted.

26 changes: 26 additions & 0 deletions _posts/2024-04-27-mlir-learning-resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "MLIR Learning Resources"
tags:
- MLIR
---

In the past few months, I have started learning Multi level Intermidate Representation [MLIR](https://mlir.llvm.org/). MLIR is framework used for creating compilers. It was originally created by Google and is now part of LLVM. It has been used to build many machine learning compilers such as [IREEE](https://iree.dev/), [OpenXLA](https://openxla.org/) and [Torch-MLIR](https://github.com/llvm/torch-mlir).

Unfortunately, MLIR has a steep learning curve. Here is a list of the resources that I have found helpful so far:

- I found a good introduction to MLIR and how it can be used in the "MLIR Tutorial" by Mehdi Amini & River Riddle [link](https://youtu.be/Y4SvqTtOIDk?si=bSgOqbXJlUqF5zWK).

- Another recommended introduction to MLIR was presented by Oleksandr "Alex" Zinenko in CGO Conference [link](https://youtu.be/C_MdJu70z2o?si=Pj_-xKSVbSj6iORI).

- I think Jeremy Kun's “MLIR for Beginners” tutorial is the most accessible tutorial for beginners [link](https://github.com/j2kun/mlir-tutorial/tree/main).

- The toy tutorial in the MLIR repo provides a nice end to end example in which the toy language is lowered all the way to LLVMIR and executed. It also shows all the different components inside the MLIR framework [link](https://mlir.llvm.org/docs/Tutorials/Toy/).

- Alex Zinenko provided an excellent analysis and breakdown of the different dialects in this write up [link](https://discourse.llvm.org/t/codegen-dialect-overview/2723).

- Mehdi Amini provided an insightful presentation about the internal implementation of the mlir operations and attributes in this MLIR Open Design Meeting [slides](https://mlir.llvm.org/OpenMeetings/2023-02-09-Properties.pdf) [recording](https://youtu.be/7ofnlCFzlqg)

- I recommend having a look at previous MLIR talks [link](https://mlir.llvm.org/talks/)

I hope that was helpful. I will keep updating this list with resources as I go.

4 changes: 2 additions & 2 deletions _sass/minimal-mistakes/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ body {
@include breakpoint($large) {
float: right;
width: calc(100% - #{$right-sidebar-width-narrow});
padding-right: $right-sidebar-width-narrow;
// padding-right: $right-sidebar-width-narrow;
}

@include breakpoint($x-large) {
width: calc(100% - #{$right-sidebar-width});
padding-right: $right-sidebar-width;
// padding-right: $right-sidebar-width;
}

.page__inner-wrap {
Expand Down

0 comments on commit 94dd502

Please sign in to comment.