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 / 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 / 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')
git config credential.useHttpPath true
@rajesh-s
rajesh-s / gem5_on_wsl2.md
Last active September 5, 2022 18:29
Installing gem5 simulator on Windows WSL2 (Windows Subsystem for Linux 2)

Installing gem5 simulator on Windows WSL2

  1. Install WSL2 using PowerShell (Assuming you are on 2004 build else check this
  dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  wsl --set-default-version 2
  1. Install distro, terminal from Microsoft App store
$ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
$ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
@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