Skip to content

Instantly share code, notes, and snippets.

View chudur-budur's full-sized avatar
🏠
Working from home

chudur-budur chudur-budur

🏠
Working from home
  • Intel Corporation
  • Kazla, Rajshahi, Bangladesh
View GitHub Profile
# Get all the provisioned packages
$Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem
# Filter the list if provided a filter
$PackageFilter = $args[0]
if ([string]::IsNullOrEmpty($PackageFilter))
{
echo "No filter specified, attempting to re-register all provisioned apps."
}
else
@chudur-budur
chudur-budur / matmul-gpu-02.mlir.in
Last active April 17, 2025 11:28
Testing linalg.matmul mlir-gpu backend
# This is the mlir code that I was trying to compile
module {
func @matmul_linalg(%A: memref<8x8xf32>, %B: memref<8x8xf32>, %C: memref<8x8xf32>) {
linalg.matmul ins(%A, %B : memref<8x8xf32>, memref<8x8xf32>)
outs(%C: memref<8x8xf32>)
return
}
func @main() {
%A = memref.alloc() : memref<8x8xf32>
func @matmul(%A: memref<24x96xf32>, %B: memref<96x64xf32>, %C: memref<24x64xf32>) {
%cf1 = constant 0.0 : f32
%AC = memref.cast %A : memref<24x96xf32> to memref<*xf32>
%BC = memref.cast %B : memref<96x64xf32> to memref<*xf32>
%CC = memref.cast %C : memref<24x64xf32> to memref<*xf32>
gpu.host_register %AC : memref<*xf32>
gpu.host_register %BC : memref<*xf32>
@chudur-budur
chudur-budur / test.hpp
Last active October 4, 2023 21:55
Test generic function pointer generator
/**
##### Header file test.hpp #####
*/
#ifndef __TEST_HPP__
#define __TEST_HPP__
#include <complex>
#include <iostream>