Skip to content

Instantly share code, notes, and snippets.

View rajesh-s's full-sized avatar
:octocat:
Trying to go to bed a little wiser than when I woke up

Rajesh Shashi Kumar rajesh-s

:octocat:
Trying to go to bed a little wiser than when I woke up
View GitHub Profile
@rajesh-s
rajesh-s / assertion_template.sv
Created February 21, 2022 00:21
Quick template for assertions in System Verilog
`timescale 1ns/1ps
module module_name();
/* Wire taps from design */
wire a = instace_top.sub_module_top.signal;
/* Other declarations used within the checker module */
int limit_count = 0;
bit chk_stop = 1'b0;
bit chk_start = 1'b1;
@rajesh-s
rajesh-s / csl remote.md
Created February 2, 2022 17:29
CSL remote

To log in remotely, you must first log out your local session. You can do that by logging in via SSH and running the command 'loginctl'.

Look for the 'seat0' session with your username and run 'loginctl terminate-session ' using that Session number.

@rajesh-s
rajesh-s / accelsim_docker.md
Last active February 6, 2023 21:16
Docker AccelSim Quick
docker run -w /root -it accelsim/ubuntu-18.04_cuda-11 /bin/bash
git clone -b release-accelwattch https://github.com/accel-sim/accel-sim-framework/
cd /usr/local/cuda-11.0/
ln -s cuda-11.0 cuda-11
cd -
cd accel-sim-framework
export PATH=$CUDA_INSTALL_PATH/bin:$PATH
git clone https://github.com/accel-sim/gpu-app-collection  
source ./gpu-app-collection/src/setup_environment 
@rajesh-s
rajesh-s / docker_quick.md
Last active December 21, 2021 00:30
Quick docker
@rajesh-s
rajesh-s / deps.sh
Last active November 20, 2021 06:39
Deps
# AccelSim
sudo apt-get install -y wget build-essential xutils-dev bison zlib1g-dev flex \
libglu1-mesa-dev git g++ libssl-dev libxml2-dev libboost-all-dev git g++ \
libxml2-dev vim python-setuptools python-dev build-essential python-pip
pip install pyyaml==5.1 plotly psutil
cuda-toolkit from nvidia
===========
= Summary =
===========
@rajesh-s
rajesh-s / build-gcc.sh
Created April 1, 2021 18:33 — forked from jeetsukumaran/build-gcc.sh
Build and Install GCC Suite from Scratch
#! /bin/bash
GCC_VERSION="5.2.0"
WORKDIR="$HOME/src/"
INSTALLDIR="/platform"
## NOTE: XCode must be installed (through App Store) and the following run to install command-line tools.
## THIS IS IMPORTANT! Among other things, it creates '/usr/include' and installs the system header files.
# xcode-select --install
@rajesh-s
rajesh-s / scrolling.ahk
Created February 7, 2021 11:47
AutoHotKey macros
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey 2
*Space:: ; Press Space Key to start or Stop Scrolling endlessly
Toggle := !Toggle
loop
{
@rajesh-s
rajesh-s / note-link-janitor-gh-action-workflow.yml
Last active January 2, 2023 06:22
Github Workflow to automatically run note-link-janitor on each push
@rajesh-s
rajesh-s / adb_ref.md
Created December 31, 2020 08:09
ADB quick reference

Platform tools download

adb shell
adb devices
pm list packages
pm uninstall -k --user 0 <name of package>
adb shell cmd package install-existing <name of package> #Restore
@rajesh-s
rajesh-s / paper_review_template.md
Created October 28, 2020 18:06
Paper review template from Prof. Onur Mutlu's suggested approach

Title

Brief summary

  • What is the problem the paper is trying to solve?
  • What are the key ideas of the paper? Key insights?
  • What is the key contribution to literature at the time it was written?
  • What are the most important things you take out from it?

Strengths (most important ones)