This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |