Skip to content

Instantly share code, notes, and snippets.

@karino2
karino2 / matmul.cu
Last active January 1, 2018 13:24
Matrix Multiplication for CUDA explanation
#include "util.h"
#define TILE_WIDTH 16
// Compute C = A * B
__global__ void matrixMultiplyShared(float* A, float* B, float* C,
int numARows, int numACols,
int numBRows, int numBCols,
int numCRows, int numCCols)
{
@karino2
karino2 / notebook.sh
Last active December 20, 2017 04:28
For execution from android phone.
# notebook.sh
#!/bin/sh
jupyter-notebook --ip=0.0.0.0 2>&1 | tee notebook_output.log | sed -n "/^ *http.*8888/s/ *http.*token=//p"
# note_on_docker.sh
#!/bin/bash
pushd ~/ClassSim;
docker run -it --rm --publish 52688:8888 --publish 6006:6006 -v $(pwd):/work arino/tfcpu2 /work/notebook.sh
@karino2
karino2 / setup.sh
Last active November 22, 2017 04:13
GCP Setup, debian, non gpu
#!/bin/sh
sudo apt-get update
sudo apt-get install -y git python-pip
git config --global user.email "[email protected]"
git config --global user.name "Kazuma Arino"
git config --global core.editor "vi"
#docker-ce for non GPU
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
@karino2
karino2 / setup.sh
Last active November 9, 2017 00:43
GCP Setup
#!/bin/sh
sudo apt-get update
sudo apt-get install -y git python-pip
git config --global user.email "[email protected]"
git config --global user.name "Kazuma Arino"
git config --global core.editor "vi"
# setup cuda
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
@karino2
karino2 / 13_3_1のLDS周辺を追う.ipynb
Last active September 12, 2017 18:48
13.85式のあたりで何をやってるのか良く分からなくなってきたので、そもそも何をやりたかったのか、から考えてみる。
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karino2
karino2 / CS231n_softmaxのメモ.ipynb
Created May 14, 2017 06:20
CS231nのコースのsoftmaxの所で、定義を書き下したメモを書いた。
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karino2
karino2 / インターバルとトライアド.ipynb
Created May 5, 2017 17:32
よくわかるコード理論講座、の動画の自分が覚えたい所のメモです。
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.