Skip to content

Instantly share code, notes, and snippets.

View VanessaD's full-sized avatar

Lisai VanessaD

  • San Jose, CA, USA
View GitHub Profile
@VanessaD
VanessaD / matrix-bench.groovy
Created May 31, 2019 00:03 — forked from pintowar/matrix-bench.groovy
A nd4j benchmark
@Grab("org.nd4j:nd4j-jblas:0.4-rc3.6")
@Grab("org.nd4j:nd4j-java:0.4-rc3.6")
@Grab("org.ejml:simple:0.27")
@Grab("org.gperfutils:gbench:0.4.3-groovy-2.4")
import gbench.*
import org.ejml.simple.SimpleMatrix
import org.nd4j.linalg.jblas.NDArray
import org.nd4j.linalg.java.JavaNDArray
benchmark {
@VanessaD
VanessaD / Install Caffe [Mac OS X 10.10.x]
Last active August 29, 2015 14:26 — forked from trungnt13/Install Caffe [Mac OS X 10.10.x]
Install Caffe [Mac OS X 10.10.x]
# Install cuda 7
1. Download and install cuda 7 from here: https://developer.nvidia.com/cuda-downloads
2. add this to .bashrc or .bash_profile (I prefer the first one):
export PATH=/Developer/NVIDIA/CUDA-7.0/bin:$PATH
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-7.0/lib:$DYLD_LIBRARY_PATH
# Install cudnn v2
1. Donwload cudnn v2 from here: https://developer.nvidia.com/cudnn
2. cd /path/to/downloaded/cudnn/folder
3. sudo cp cudnn.h /usr/local/cuda/include