Skip to content

Instantly share code, notes, and snippets.

@sveitser
sveitser / Opencog makepkg output
Created May 16, 2014 16:57
Opencog makepkg output
==> Making package: opencog-git 0.0.0-1 (Sat May 17 00:33:41 HKT 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating opencog-git git repo...
Fetching origin
==> Validating source files with md5sums...
opencog-git ... Skipped
==> Extracting sources...
-> Creating working copy of opencog git repo...
@sveitser
sveitser / lf-apache.conf
Last active August 29, 2015 14:03
liquid democracy apache test
<VirtualHost *:80>
ServerName fascism.dimsumlabs.com
DocumentRoot /opt/lf/liquid_feedback_frontend
RewriteEngine on
RewriteRule ^/$ /lf/ [R]
RewriteRule ^/lf/static/(.*)$ /lf/static/$1 [L,PT]
@sveitser
sveitser / dockerfail.txt
Created July 4, 2014 11:12
docker 1.0.1 fails on arch linux
➜ ~ git:(master) ✗ docker -v
Docker version 1.0.1, build 990021a
➜ ~ git:(master) ✗ sudo docker -D -d
2014/07/04 19:11:13 docker daemon: 1.0.1 990021a; execdriver: native; graphdriver:
[bf25c63f] +job serveapi(unix:///var/run/docker.sock)
[bf25c63f] +job initserver()
[bf25c63f.initserver()] Creating server
2014/07/04 19:11:13 Listening for HTTP on unix (/var/run/docker.sock)
[debug] server.go:1114 Registering GET, /_ping
(lasagne) lulu@lulus ➜ /tmp CUDA_LAUNCH_BLOCKING=1 THEANO_FLAGS="device=cpu" python grad.py
Reshape{2} [id A] '' 24
|MaxPoolGrad{ds=(3, 3), ignore_border=True, st=(2, 2), padding=(0, 0), mode='max'} [id B] '' 23
| |Reshape{4} [id C] '' 4
| | |x [id D]
| | |Join [id E] '' 3
| | |TensorConstant{0} [id F]
| | |TensorConstant{(1,) of 1} [id G]
| | |TensorConstant{(1,) of 1} [id G]
| | |MakeVector{dtype='int64'} [id H] '' 2
----------------------------------- coverage: platform linux, python 3.5.1-final-0 ------------------------------------
Name Stmts Miss Cover Missing
---------------------------------------------------------------------
lasagne/__init__.py 14 0 100%
lasagne/conftest.py 3 0 100%
lasagne/init.py 112 0 100%
lasagne/layers/__init__.py 13 0 100%
lasagne/layers/base.py 52 0 100%
lasagne/layers/conv.py 85 0 100%
lasagne/layers/corrmm.py 23 0 100%
(lasagne) lulu@lulus ➜ theano git:(master) ✗ theano-nose
Using gpu device 0: GeForce GTX 980 Ti (CNMeM is disabled, CuDNN 4007)
/home/lulu/dev/theano/theano/tensor/signal/downsample.py:5: UserWarning: downsample module has been moved to the pool module.
warnings.warn("downsample module has been moved to the pool module.")
..................EE.........................................S...................F.EE..F/usr/lib/python3.5/site-packages/numpy/lib/nanfunctions.py:326: RuntimeWarning: All-NaN slice encountered
warnings.warn("All-NaN slice encountered", RuntimeWarning)
/usr/lib/python3.5/site-packages/numpy/lib/nanfunctions.py:227: RuntimeWarning: All-NaN axis encountered
warnings.warn("All-NaN axis encountered", RuntimeWarning)
..............................................EE......FF.SS.............0.4236492467731422
0.4236492467731422
======================================================================
ERROR: Failure: TypeError (No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
(lasagne) lulu@lulus ➜ theano git:(master) ✗ THEANO_FLAGS='device=gpu0' cuda-memcheck --tool racecheck python digits.py
========= CUDA-MEMCHECK
Using gpu device 0: GeForce GTX 980 Ti (CNMeM is disabled, CuDNN 4007)
========= Race reported between Write access at 0x00000370 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*)
========= and Read access at 0x000003a8 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*) [64 hazards]
=========
========= Race reported between Read access at 0x00000458 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*)
========= and Write access at 0x00000450 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*) [56 hazards]
========= and Write access at 0x00000488 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*) [56
THEANO_FLAGS=device=cpu python grad2.py
/home/lulu/envs/lasagne/src/theano/theano/tensor/signal/downsample.py:5: UserWarning: downsample module has been moved to the pool module.
warnings.warn("downsample module has been moved to the pool module.")
[[[[ 0.0092912 -0.02441137 -0.02754276 0.01122958 -0.00818081]
[-0.01672053 -0.01367587 0.00680624 0.00199598 0.00061339]
[-0.00191424 -0.02243352 -0.00397626 -0.00542678 0.00766693]
[ 0.00202304 -0.00312776 -0.02510831 0.0181811 0.01776238]
[-0.00225955 0.00767795 0.00633004 -0.01474251 0.00119607]]]]
from lasagne import layers, objectives, updates
import numpy as np
import theano
import theano.tensor as T
np.random.seed(0)
input_var = T.tensor4('X')
target_var = T.tensor4('X2')