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

rocprof -i input.xml --timestamp on --basenames on --stats

input.xml

List of metrics

<metric name=TCC_HIT[0],TCC_HIT[1],TCC_HIT[2],TCC_HIT[3],TCC_HIT[4],TCC_HIT[5],TCC_HIT[6],TCC_HIT[7],TCC_HIT[8],TCC_HIT[9],TCC_HIT[10],TCC_HIT[11],TCC_HIT[12],TCC_HIT[13],TCC_HIT[14],TCC_HIT[15],TCC_MISS[0],TCC_MISS[1],TCC_MISS[2],TCC_MISS[3],TCC_MISS[4],TCC_MISS[5],TCC_MISS[6],TCC_MISS[7],TCC_MISS[8],TCC_MISS[9],TCC_MISS[10],TCC_MISS[11],TCC_MISS[12],TCC_MISS[13],TCC_MISS[14],TCC_MISS[15],TCC_EA_RDREQ[3],TCC_EA_RDREQ[4],TCC_EA_RDREQ[5],TCC_EA_RDREQ[6],TCC_EA_RDREQ[7],TCC_EA_RDREQ[8],TCC_EA_RDREQ[9],TCC_EA_RDREQ[10],TCC_EA_RDREQ[11],TCC_EA_RDREQ[12],TCC_EA_RDREQ[13],TCC_EA_RDREQ[14],TCC_EA_RDREQ[15],TCC_EA_WRREQ[0],TCC_EA_WRREQ[1],TCC_EA_WRREQ[2],TCC_EA_WRREQ[3],TCC_EA_WRREQ[4],TCC_EA_WRREQ[5],TCC_EA_WRREQ[6],TCC_EA_WRREQ[7],TCC_EA_WRREQ[8],TCC_EA_WRREQ[9],TCC_EA_WRREQ[10],TCC_EA_WRREQ[11],TCC_EA_WRREQ[12],TCC_EA_WRREQ[13],TCC_EA_WRREQ[14],TCC_EA_WRREQ[15] >

@rajesh-s
rajesh-s / reference.md
Last active June 16, 2025 20:07
Reference to get around

Reference to get around

Fast transfers over the network

# Step 1: Create compressed archive
tar -I zstd -cf data_backup.tar.zst /source/directory

# Step 2: Transfer
rsync -avhP user@remote_host:/destination/ data_backup.tar.zst
$ 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
git config credential.useHttpPath true
@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')

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 / 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