Skip to content

Instantly share code, notes, and snippets.

View zhanghb97's full-sized avatar
💪
Keep Going

Hongbin Zhang zhanghb97

💪
Keep Going
View GitHub Profile
@zhanghb97
zhanghb97 / MLIR-RVV-ENV.md
Last active November 11, 2022 08:27
Environment for MLIR + RVV Integration Test.

MLIR RVV Integration Test Environment

Build riscv-gnu-toolchain and qemu

  1. Clone the code.
git clone git@github.com:riscv-collab/riscv-gnu-toolchain.git
cd riscv-gnu-toolchain
git checkout rvv-next
@zhanghb97
zhanghb97 / test-rvv-stripmining.cpp
Created January 10, 2022 14:18
Test RVV Strip-Mining
#include <iostream>
using namespace std;
// Define Memref Descriptor.
template<class T>
struct MemRef_descriptor_ {
T *allocated;
T *aligned;
intptr_t offset;
@zhanghb97
zhanghb97 / test-rvv-add.cpp
Last active October 19, 2021 02:55
MLIR RVV Dialect Example
#include <iostream>
using namespace std;
// Define Memref Descriptor.
template<class T>
struct MemRef_descriptor_ {
T *allocated;
T *aligned;
intptr_t offset;