Skip to content

Instantly share code, notes, and snippets.

View Kiran-r's full-sized avatar
🎯
Focusing

Kiran Ranganath Kiran-r

🎯
Focusing
View GitHub Profile
@Kiran-r
Kiran-r / peregrine-demo.cpp
Last active October 17, 2020 04:23
Peregrine Match demo
#include <iostream>
#include <string>
#include "Peregrine.hh"
using namespace Peregrine;
SmallGraph generateCyclic(uint32_t size)
{
// Return Cyclic smallGraph of size.
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
@Kiran-r
Kiran-r / smbclient_basic.md
Last active April 21, 2018 03:29
How to access samba share using samba client

Method 1:

$ smbclient //hostname/share -U domain/username

Method 2:

$ cat > ~/.smbclient.conf <<EOF 
username=domain/username
#!/bin/bash/
measure_temp() {
file=sensors_`date +%F_%T`.log
touch ~/$file
while :
do
sensors >> $file
sleep 10
done
#include <stdio.h>
#include <cuda_runtime.h>
#include <time.h>
#include <vector>
using namespace std;
const int GPUs[] = {1,2,3}; // If left blank all available GPUs will be used.
vector<int> g(GPUs, GPUs + sizeof(GPUs)/sizeof(int));
@Kiran-r
Kiran-r / p2pBandwidthTest
Created July 6, 2017 05:54
p2p bandwidth test results
./p2pBandwidthLatencyTest
[P2P (Peer-to-Peer) GPU Bandwidth Latency Test]
Device: 0, Tesla P100-SXM2-16GB, pciBusID: 6, pciDeviceID: 0, pciDomainID:0
Device: 1, Tesla P100-SXM2-16GB, pciBusID: 7, pciDeviceID: 0, pciDomainID:0
Device: 2, Tesla P100-SXM2-16GB, pciBusID: a, pciDeviceID: 0, pciDomainID:0
Device: 3, Tesla P100-SXM2-16GB, pciBusID: b, pciDeviceID: 0, pciDomainID:0
Device: 4, Tesla P100-SXM2-16GB, pciBusID: 85, pciDeviceID: 0, pciDomainID:0
Device: 5, Tesla P100-SXM2-16GB, pciBusID: 86, pciDeviceID: 0, pciDomainID:0
Device: 6, Tesla P100-SXM2-16GB, pciBusID: 89, pciDeviceID: 0, pciDomainID:0
Device: 7, Tesla P100-SXM2-16GB, pciBusID: 8a, pciDeviceID: 0, pciDomainID:0
@Kiran-r
Kiran-r / Caffee install
Last active June 26, 2017 23:04
Caffe installation
Packages to be installed
------------------------
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler libboost-dev libboost-all-dev libgflags-dev libatlas-base-dev libgflags-dev libgoogle-glog-dev liblmdb-dev -y
Makefile.config
---------------
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
wong936@dgx-1:~/kubernetes$ make --debug
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-pc-linux-gnu
Reading makefiles...
Updating goal targets....
@Kiran-r
Kiran-r / gist:c249dae54d33baff869dd8d706d8653f
Last active February 26, 2017 06:15
Acusto Installation
# sudo apt-get install wget gcc blacs-* libscalapack-* scalapack-* liblapack-dev liblapack-doc-man liblapack-doc liblapack-pic liblapack3 liblapack-test liblapacke liblapacke-dev libconfig-dev build-essential openmpi-bin openmpi-doc libopenmpi-dev libmysql* gnuplot grace paraview mpich
# wget http://www.netlib.org/scalapack/scalapack-2.0.0.tgz
# tar -xvf scalapack-2.0.0.tgz
# cd scalapack
# cp SLmake.inc.example SLmake.inc
# make
# wget https://svwh.dl.sourceforge.net/project/acousto/acousto/1.6/acousto-1.6b.tar.gz
# gunzip acousto-1.6b.tar.gz
# tar -xvf acousto-1.6b.tar
# cd acousto-1.6b
#!/usr/bin/expect
set timeout 120
spawn "~/cudatoolkit_4.0.17_linux_64_ubuntu10.10.run"
expect "Enter install path (default /usr/local/cuda, '/cuda' will be appended): "
send "\r"
spawn "~/gpucomputingsdk_4.0.17_linux.run"