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 / 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 / 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 / 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 / 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 / docker_quick.md
Last active December 21, 2021 00:30
Quick docker
@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 / 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 / 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;

gem5

Getting started with gem5

The gem5 simulator is most useful for research when you build new models and new features on top of the current codebase. Thus, the most common way to use gem5 is to download the source and build it yourself. Reference

@rajesh-s
rajesh-s / Makefile
Created June 16, 2022 23:18
Makefile anytime
# Thanks to Job Vranish (https://spin.atomicobject.com/2016/08/26/makefile-c-projects/)
TARGET_EXEC := final_program
BUILD_DIR := ./build
SRC_DIRS := ./src
# Find all the C and C++ files we want to compile
# Note the single quotes around the * expressions. Make will incorrectly expand these otherwise.
SRCS := $(shell find $(SRC_DIRS) -name '*.cpp' -or -name '*.c' -or -name '*.s')