Skip to content

Instantly share code, notes, and snippets.

@marius311
marius311 / ipyn.carv
Created October 11, 2012 22:40
Get an IPython notebook running on Carver.
#!/usr/bin/env python
#Specify this:
username = ''
"""
Get an IPython notebook running on Carver.
Usage:
@marius311
marius311 / waf-f2py.py
Created October 28, 2012 21:12
Use waf to build an f2py extension instead of f2py's built in compiler based on scons.
import os.path as osp, numpy
from waflib.Utils import to_list
def build_f2py(bld, source, module_name, extra_sources, skip=None, only=None, symlink=False, **kwargs):
"""
Build an f2py extension with waf.
Arguments:
----------
@marius311
marius311 / fftbench.jl
Created December 16, 2016 12:05
Some simple parallel FFT benchmarks in Julia
using BenchmarkTools
x = rand(Complex{Float64}, 2048,2048);
y = similar(x)
times = map(1:8) do i
FFTW.set_num_threads(i)
p = plan_fft(x, flags=FFTW.MEASURE)
median((@benchmark A_mul_B!($y,$p,$x)).times)/1e6
end
<core_client_version>7.4.36</core_client_version>
<![CDATA[
<stderr_txt>
_MODULE_NOT_FOUND
00:00:00.195493 VMSetError: Failed to register ourselves as a PCI Bus
00:00:00.195560 PDM: Failed to construct 'pci'/0! VERR_MODULE_NOT_FOUND (-610) - Module not found.
00:00:00.375107 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={8ab7c520-2442-4b66-8d74-4ff1e195d2b6} aComponent={Console} aText={Cannot load R0 module C:\Program Files\Oracle\VirtualBox/VBoxDDR0.r0: SUPR3LoadModule: supLoadModule returned VERR_LDR_MISMATCH_NATIVE (VERR_LDR_MISMATCH_NATIVE).
00:00:00.375158 Failed to register ourselves as a PCI Bus (VERR_MODULE_NOT_FOUND)}, preserve=false
00:00:00.388008 Power up failed (vrc=VERR_MODULE_NOT_FOUND, rc=E_FAIL (0X80004005))
Jan 08 14:06:56 hostA dockerd[8953]: time="2017-01-08T14:06:56.096638774+01:00" level=debug msg="Calling GET /_ping"
Jan 08 14:06:56 hostA dockerd[8953]: time="2017-01-08T14:06:56.097295704+01:00" level=debug msg="Calling GET /v1.25/version"
Jan 08 14:07:24 hostA dockerd[8953]: time="2017-01-08T14:07:24.525640581+01:00" level=debug msg="Calling GET /_ping"
Jan 08 14:07:24 hostA dockerd[8953]: time="2017-01-08T14:07:24.526276681+01:00" level=debug msg="Calling POST /v1.25/swarm/init"
Jan 08 14:07:24 hostA dockerd[8953]: time="2017-01-08T14:07:24.526387729+01:00" level=debug msg="form data: {\"AdvertiseAddr\":\"<hostA's public IP>\",\"AutoLockManagers\":false,\"ForceNewCluster\":false,\"ListenAddr\":\"wlp3s0:2377\",\"Spec\":{\"CAConfig\":{},\"Dispatcher\":{},\"EncryptionConfig\":{\"AutoLockManagers\":false},\"Orchestration\":{},\"Raft\":{\"ElectionTick\":0,\"HeartbeatTick\":0},\"TaskDefaults\":{}}}"
Jan 08 14:07:24 hostA dockerd[8953]: time="2017-01-08T14:07:24.552327066+01:00" level=debug msg="generated CA key
/usr/local/bin/dockerd -D -g "/var/lib/docker" -H unix:// -H tcp://0.0.0.0:2376 --tlsverify --tlscacert=/var/lib/hostB/tls/ca.pem --tlscert=/var/lib/hostB/tls/server.pem --tlskey=/var/lib/hostB/tls/serverkey.pem >> "/var/lib/hostB/docker.log"
time="2017-01-08T13:06:17.177971262Z" level=debug msg="Trusting 174 certs"
time="2017-01-08T13:06:17.178612132Z" level=debug msg="docker group found. gid: 100"
time="2017-01-08T13:06:17.178628803Z" level=debug msg="Listener created for HTTP on unix (/var/run/docker.sock)"
time="2017-01-08T13:06:17.178712878Z" level=debug msg="Listener created for HTTP on tcp (0.0.0.0:2376)"
time="2017-01-08T13:06:17.184229383Z" level=info msg="libcontainerd: new containerd process, pid: 1065"
time="2017-01-08T13:06:17.198125325Z" level=debug msg="containerd: read past events" count=0
time="2017-01-08T13:06:17.198214507Z" level=debug msg="containerd: supervisor running" cpus=1 memory=2002 runtime=docker-runc runtimeArgs=[] stateDir="/var/run/docker/libcontainerd/containerd"
time="
Tuple{typeof(Base.:(*)), CMBLensing.LazyBinaryOp{typeof(Base.:(*))(), CMBLensing.FullDiagOp{CMBLensing.Field2Tuple{CMBLensing.FlatS2QUMap{Float64, CMBLensing.Flat{3, 64}}, CMBLensing.FlatS0Map{Float64, CMBLensing.Flat{3, 64}}, CMBLensing.QUMap, CMBLensing.Map}, CMBLensing.Pix, CMBLensing.Spin, CMBLensing.Basis2Tuple{CMBLensing.QUMap, CMBLensing.Map}}, CMBLensing.LazyBinaryOp{typeof(Base.:(*))(), Int64, CMBLensing.LazyBinaryOp{typeof(Base.:(+))(), CMBLensing.LazyBinaryOp{typeof(Base.Ac_mul_B)(), CMBLensing.δfϕₛ_δfϕₜ{1, 0, CMBLensing.PowerLens{7, CMBLensing.FlatS0Map{Float64, CMBLensing.Flat{3, 64}}}}, CMBLensing.LazyBinaryOp{typeof(Base.:(*))(), CMBLensing.FuncOp{getfield(CMBLensing, Symbol("##281#283")){NamedTuples._NT_d_CN_Cf_Cϕ_Md_Mf_Mϕ{CMBLensing.FlatS2QUMap{Float64, _}, CMBLensing.FullDiagOp{_, _, CMBLensing.S2, CMBLensing.QUMap}, CMBLensing.FullDiagOp{_, _, CMBLensing.S2, CMBLensing.QUMap}, CMBLensing.FullDiagOp{_, _, CMBLensing.S0, CMBLensing.Map}, CMBLensing.LazyBinaryOp{typeof(Base.:(*))(), _, _}, CMB
@marius311
marius311 / output2
Created May 16, 2017 09:49
output2
Tuple{Tuple{Int64, Void}, Tuple{Tuple{Int64, Void}, Tuple{Int64, Tuple{Tuple{Int64, Void}, Tuple{Tuple{Int64, Void}, Tuple{Int64, Tuple{Tuple{Int64, Void}, Tuple{Tuple, Tuple}}}}}}}}
Tuple{Tuple{Int64, Void}, Tuple{Tuple{Int64, Void}, Tuple{Int64, Tuple{Tuple{Int64, Void}, Tuple{Tuple{Int64, Void}, Tuple{Int64, Tuple{Tuple{Int64, Void}, Tuple{Tuple{Any}, Tuple{Any}}}}}}}}}
WARNING: An error occurred during inference. Type inference is now partially disabled.
Base.MethodError(f=typeof(Base.string)(), args=(Expr(:||, Expr(:call, :!, Expr(:call, :isa, :t, :Type)::Any)::Any, Expr(:<:, :t, :r)::Any)::Any,), world=0x0000000000000abf)
rec_backtrace at /home/marius/src/julia/src/stackwalk.c:84
record_backtrace at /home/marius/src/julia/src/task.c:245
jl_throw at /home/marius/src/julia/src/task.c:564
jl_method_error_bare at /home/marius/src/julia/src/gf.c:1476
jl_method_error at /home/marius/src/julia/src/gf.c:1494
jl_lookup_generic_ at /home/marius/src/julia/src/gf.c:1907 [inlined]
Tuple{Tuple{Int64, Void}, Tuple{Tuple{Int64, Void}, Tuple{Int64, Tuple{Tuple{Int64, Void}, Tuple{Tuple{Int64, Void}, Tuple{Int64, Tuple{Tuple{Int64, Void}, Tuple{Tuple, Tuple}}}}}}}}
Tuple{Tuple{Int64, Void}, Tuple{Tuple{Int64, Void}, Tuple{Int64, Tuple{Tuple{Int64, Void}, Tuple{Tuple{Int64, Void}, Tuple{Int64, Tuple{Tuple{Int64, Void}, Tuple{Tuple{Any}, Tuple{Any}}}}}}}}}
WARNING: An error occurred during inference. Type inference is now partially disabled.
Base.MethodError(f=typeof(Base.string)(), args=(Expr(:||, Expr(:call, :!, Expr(:call, :isa, :t, :Type)::Any)::Any, Expr(:<:, :t, :r)::Any)::Any,), world=0x0000000000000abf)
rec_backtrace at /home/marius/src/julia/src/stackwalk.c:84
record_backtrace at /home/marius/src/julia/src/task.c:245
jl_throw at /home/marius/src/julia/src/task.c:564
jl_method_error_bare at /home/marius/src/julia/src/gf.c:1476
jl_method_error at /home/marius/src/julia/src/gf.c:1494
jl_lookup_generic_ at /home/marius/src/julia/src/gf.c:1907 [inlined]
WARNING: An error occurred during inference. Type inference is now partially disabled.
Base.MethodError(f=typeof(Core.Inference.convert)(), args=(Base.AssertionError, "invalid age range update"), world=0x0000000000000ac2)
rec_backtrace at /home/centos/buildbot/slave/package_tarball64/build/src/stackwalk.c:84
record_backtrace at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:245
jl_throw at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:564
jl_method_error_bare at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1476
jl_method_error at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1494
jl_lookup_generic_ at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1907 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1927
Type at ./coreimg.jl:14