Skip to content

Instantly share code, notes, and snippets.

View andreasnoack's full-sized avatar

Andreas Noack andreasnoack

View GitHub Profile
precompile(Tuple{typeof(Base.getindex), Base.Dict{Symbol, Base.Dict{K, V} where V where K}, Symbol})
precompile(Tuple{typeof(Base.haskey), Base.Dict{Base.UUID, Base.Dict{String, Union{Base.SHA1, String}}}, Base.UUID})
precompile(Tuple{getfield(Pkg.BinaryPlatforms, Symbol("#FreeBSD#19#20")), Nothing, Nothing, Pkg.BinaryPlatforms.CompilerABI, Type{Pkg.BinaryPlatforms.FreeBSD}, Symbol})
precompile(Tuple{getfield(Core, Symbol("#Type##kw")), NamedTuple{(:libc, :compiler_abi), Tuple{Nothing, Pkg.BinaryPlatforms.CompilerABI}}, Type{Pkg.BinaryPlatforms.FreeBSD}, Symbol})
precompile(Tuple{Type{Base.Pair{A, B} where B where A}, Pkg.BinaryPlatforms.FreeBSD, Base.Dict{String, Any}})
precompile(Tuple{typeof(Base.ht_keyindex2!), Base.Dict{Pkg.BinaryPlatforms.Platform, Base.Dict{String, Any}}, Pkg.BinaryPlatforms.FreeBSD})
precompile(Tuple{typeof(Base.setindex!), Base.Dict{Pkg.BinaryPlatforms.Platform, Base.Dict{String, Any}}, Base.Dict{String, Any}, Pkg.BinaryPlatforms.FreeBSD})
precompile(Tuple{getfield(Pkg.BinaryPlatform
@andreasnoack
andreasnoack / pumashessian.jl
Created February 14, 2019 21:21
A stack overflow in ir.jl
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
iterate at ./compiler/ssair/ir.jl:1133
@andreasnoack
andreasnoack / gpustencil.jl
Created June 29, 2018 14:39
CUDAnative stencil
function stencil(v, b, ω, i, j)
vij = (1 - ω)*v[i, j] +
ω*(v[i + 1, j] + v[i - 1, j] + v[i, j + 1] + v[i, j - 1] +
b[i, j])/4
# if i == 2 && j == 5
# @cuprintf("HALLO! %f\n", Float64(vij))
# end
return vij
end
@andreasnoack
andreasnoack / # gcc - 2018-05-11_13-25-02.txt
Created May 11, 2018 11:39
gcc on macOS 10.13.4 - Homebrew build logs
Homebrew build logs for gcc on macOS 10.13.4
Build date: 2018-05-11 13:25:02
@andreasnoack
andreasnoack / Matrix
Last active March 7, 2017 22:09
Compare Matrix and SMatrix
define void @"julia_bar!_69141"(i8**, i8**, i8**, i8) #0 !dbg !5 {
top:
%4 = call i8**** @jl_get_ptls_states() #3
%5 = alloca [16 x i8**], align 8
%.sub = getelementptr inbounds [16 x i8**], [16 x i8**]* %5, i64 0, i64 0
%6 = getelementptr [16 x i8**], [16 x i8**]* %5, i64 0, i64 2
%7 = getelementptr [16 x i8**], [16 x i8**]* %5, i64 0, i64 3
%8 = getelementptr [16 x i8**], [16 x i8**]* %5, i64 0, i64 4
%9 = getelementptr [16 x i8**], [16 x i8**]* %5, i64 0, i64 5
%10 = getelementptr [16 x i8**], [16 x i8**]* %5, i64 0, i64 6
@andreasnoack
andreasnoack / chat.txt
Created February 22, 2017 01:51
Memory debuggin in Julia
Yichao:
1. no need to edit any code
2. compile it with `WITH_GC_DEBUG_ENV` make variable
this should enable detection of 4 envs
and turn on gc verifier
(so the gc will be much slower even without any env set)
the three I used the most often are `JULIA_GC_ALLOC_PRINT=0:10 JULIA_GC_ALLOC_OTHER=r0:1000 JULIA_GC_ALLOC_POOL=r0:1000`
(not the default val, just whatever copied from my cmdline history)
Andreas:
travis_fold:start:worker_info
Worker information
hostname: worker-jupiter-brain:307b6dd7-cafc-4c4a-8398-cd7341cfdc54
version: v2.6.2-8-g42382d7 https://github.com/travis-ci/worker/tree/42382d728490166eff93d8242e994664150a296a
instance: 175b0567-0e70-4c45-97f5-17c0c4e3dc52:travis-ci-osx10.11-xcode8-1479248015
startup: 1m4.772609219s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
@andreasnoack
andreasnoack / profile_05.txt
Last active January 27, 2017 18:05
benchmark_one_light_source on Julia 0.5 and 0.6
➜ ~ julia .julia/v0.6/Celeste/benchmark/speed/benchmark_one_light_source.jl --profile
make: Nothing to be done for `all'.
[1]<1> INFO: reading photoobj catalogs for 1 fields
[1]<1> INFO: field Celeste.SDSSIO.RunCamcolField(7713,3,152): reading /Users/andreasnoack/.julia/v0.5/Celeste/test/data/7713/3/152/photoObj-007713-3-0152.fits
[1]<1> INFO: field Celeste.SDSSIO.RunCamcolField(7713,3,152): 797 entries
[1]<1> INFO: field Celeste.SDSSIO.RunCamcolField(7713,3,152): 732 filtered entries
[1]<1> INFO: 732 primary sources
[1]<1> INFO: Found 1 target sources in 347.7444, 347.7446, 16.6202, 16.6204
[1]<1> INFO: loading images for Celeste.SDSSIO.RunCamcolField(7713,3,152)
[1]<1> INFO: neighbors found in 0.206718689 seconds
@andreasnoack
andreasnoack / log.txt
Created January 13, 2017 02:16
AppVeyor build 1.0.9879 - Pull request #19997 - fix warning that Base.cond cannot be imported into LinAlg
[00:00:00] Build started
[00:00:00] git config --global core.autocrlf input
[00:00:00] git clone -q --depth=50 https://github.com/JuliaLang/julia.git C:\projects\julia
[00:00:06] git fetch -q origin +refs/pull/19997/merge:
[00:00:07] git checkout -qf FETCH_HEAD
[00:00:10] Restoring build cache
[00:00:10]
[00:00:11] Cache 'x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z' - Downloading (63,558,997 bytes)...1%
[00:00:11] Cache 'x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z' - Downloading (63,558,997 bytes)...10%
[00:00:11] Cache 'x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z' - Downloading (63,558,997 bytes)...20%
1 ./dict.jl:235; rehash!(::Dict{Int64,Void}, ::Int64)
1 ...e/noack/julia/ui/repl.c:81; exec_program
1 ./multidimensional.jl:444; _unsafe_batchsetindex!(::Array{F...
1 ./multidimensional.jl:448; macro expansion
1 .../noack/julia/ui/repl.c:81; exec_program
1 ./operators.jl:821; setindex_shape_check(::StaticArr...
1 ...e/noack/julia/ui/repl.c:34; jl_get_ptls_states_static
2 ./operators.jl:829; setindex_shape_check(::StaticArr...
2 ...e/noack/julia/ui/repl.c:81; exec_program
3 ..._vi/elbo_objective.jl:383; add_pixel_term!(::Celeste.Determ...