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
$ luarocks make rocks/cutorch-scm-1.rockspec | |
Warning: unmatched variable LUALIB | |
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/user/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/user/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install | |
-- Found Torch7 in /home/user/torch/install | |
CUDA_WRAP_SRCS cuda_target=THC | |
CUDA_NVCC_INCLUDE_ARGS -I/usr/local/cuda/include;-I/home/user/torch/install/include;-I/home/user/torch/install/include/TH;-I/usr/local/cuda/include;-I/home/user/git/cutorch/lib/THC/CUDA_SDK_ROOT_DIR-NOTFOUND/common/inc;-I/home/user/git/cutorch/build/lib/THC | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /home/user/git/cutorch/build |
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
$ touch lib/THC/THCStorageCopy.cu | |
$ luarocks make rocks/cutorch-scm-1.rockspec | |
Warning: unmatched variable LUALIB | |
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/user/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/user/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install | |
-- Found Torch7 in /home/user/torch/install | |
CUDA_WRAP_SRCS cuda_target=THC | |
CUDA_NVCC_INCLUDE_ARGS -I/usr/local/cuda/include;-I/home/user/torch/install/include;-I/home/user/torch/install/include/TH;-I/usr/local/cuda/include;-I/home/user/git/cutorch/lib/THC/CUDA_SDK_ROOT_DIR-NOTFOUND/common/inc;-I/home/user/git/cutorch/build/lib/THC | |
-- Configuring done | |
-- Generating done |
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
ubuntu:~/git/loadcaffe$ echo $CC | |
gcc-4.9 | |
ubuntu:~/git/loadcaffe$ luarocks make loadcaffe-1.0-0.rockspec | |
cmake -E make_directory build; | |
cd build; | |
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="/home/ubuntu/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/ubuntu/torch/install/lib/luarocks/rocks/loadcaffe/1.0-0"; | |
make | |
-- The C compiler identification is GNU 4.9.3 | |
-- The CXX compiler identification is GNU 4.9.3 |
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
running tests... | |
aftter requiring cltorch.unit_storage | |
Running 2 tests | |
__ | |
|_ ==> test_basicX server found. dri2 connection failed! | |
X server found. dri2 connection failed! | |
X server found. dri2 connection failed! | |
X server found. dri2 connection failed! |
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
require 'torch' | |
require 'nn' | |
require 'sys' | |
local cmd = torch.CmdLine() | |
-- Basic options | |
cmd:option('-image_size', 224, 'Maximum height / width of generated image') | |
cmd:option('-gpu', 0, 'Zero-indexed ID of the GPU to use; for CPU mode set -gpu = -1') |
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
from neon.layers import Convolution | |
from neon.initializers import Gaussian | |
from neon.backends import gen_backend | |
import numpy as np | |
import pycuda.driver as cuda | |
#import pycuda.autoinit | |
import pycuda.gpuarray as gpuarray | |
import time | |
image_size = 224 |
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
// from lib/THC/THCTensorSort.cu: | |
// needs following tmeplate variables defined: | |
// Dim integer | |
// IndexType string, eg 'int', or 'unsigned int' | |
// dims list containing Dim | |
// MAX_CLTORCH_DIMS integer, eg 25 | |
// WarpSize integer eg 32 | |
// this needs the following template variables defined: |
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
// from lib/THC/THCTensorSort.cu: | |
// needs following tmeplate variables defined: | |
// Dim integer | |
// IndexType string, eg 'int', or 'unsigned int' | |
// dims list containing Dim | |
// MAX_CLTORCH_DIMS integer, eg 25 | |
// WarpSize integer eg 32 | |
// this needs the following template variables defined: |
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
ubuntu@peach:~$ nimbix-ssh --image ngd3 | |
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.19.0-42-generic x86_64) | |
* Documentation: https://help.ubuntu.com/ | |
Last login: Wed Jun 15 01:49:00 2016 from 114.242.13.201 | |
nimbix@JARVICE:~$ cat /etc/lsb-release | |
DISTRIB_ID=Ubuntu | |
DISTRIB_RELEASE=14.04 | |
DISTRIB_CODENAME=trusty | |
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS" |
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
ubuntu@peach:~$ cd /tmp | |
ubuntu@peach:/tmp$ git clone https://github.com/hughperkins/test-checks.git | |
Cloning into 'test-checks'... | |
remote: Counting objects: 17, done. | |
remote: Compressing objects: 100% (4/4), done. | |
remote: Total 17 (delta 0), reused 0 (delta 0), pack-reused 13 | |
Unpacking objects: 100% (17/17), done. | |
Checking connectivity... done. | |
ubuntu@peach:/tmp$ cd test-checks/ | |
ubuntu@peach:/tmp/test-checks$ ls |
OlderNewer