Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢

Simon Byrne simonbyrne

🐢
View GitHub Profile
@simonbyrne
simonbyrne / output cpu
Created May 12, 2019
HPC CI d4e02e4e7925c8358a1160062fda5ca2b0de9bdb
View output cpu
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
[?25l[?25hhello world
@simonbyrne
simonbyrne / output cpu
Created May 12, 2019
HPC CI d4e02e4e7925c8358a1160062fda5ca2b0de9bdb
View output cpu
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
[?25l[?25hhello world
@simonbyrne
simonbyrne / output
Created May 12, 2019
HPC CI d4e02e4e7925c8358a1160062fda5ca2b0de9bdb
View output
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
[?25l[?25h Cloning git-repo `https://github.com/vchuravy/GPUifyLoops.jl.git`
[?25l Fetching: [> ] 0.0 % [?25h Installed RecipesBase ───────────────── v0.6.0
Installed MultiScaleArrays ──────────── v1.4.0
Installed TreeViews ─────────────────── v0.3.0
Installed DiffEqDiffTools ───────────── v0.8.1
Installed Distances ─────────────────── v0.8.0
Installed DiffEqNoiseProcess ────────── v3.1.0
Installed DiffEqBase ────────────────── v5.7.0
View mpi_error.txt
$ mpiexec -debug -n 2 julia --project test/test_reduce.jl
[00:7284] host tree:
[00:7284] host: MSEDGEWIN10, parent: 0, id: 1
[00:7284] mpiexec started smpd manager listening on port 4439e991-40a0-4df8-9c51-55de66a74419
[00:7284] create manager process (using mpiexec credentials)
[00:7284] Launching smpd as 'C:\Program Files\Microsoft MPI\Bin\smpd.exe "C:\Program Files\Microsoft MPI\Bin\smpd.exe" -p 8677 -d 11 -mgr 256 "job" -localonly'
[00:7284] smpd reading the port string from the manager
[-1:7112] Launching smpd manager instance.
[-1:7112] created set for manager listener 484
[-1:7112] smpd manager listening on port 189aabd2-52fd-4bc1-b80f-886454b16dc6
@simonbyrne
simonbyrne / Manifest.toml
Last active Nov 7, 2018
Cassette/DataFrame/Test error
View Manifest.toml
[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
[[BinaryProvider]]
deps = ["Libdl", "Pkg", "SHA", "Test"]
git-tree-sha1 = "9930c1a6cd49d9fcd7218df6be417e6ae4f1468a"
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
version = "0.5.2"
[[Cassette]]
View Manifest.toml
[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
[[BinDeps]]
deps = ["Compat", "Libdl", "SHA", "URIParser"]
git-tree-sha1 = "12093ca6cdd0ee547c39b1870e0c9c3f154d9ca9"
uuid = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
version = "0.8.10"
[[BinaryProvider]]
View Manifest.toml
[[AxisArrays]]
deps = ["Compat", "Dates", "IntervalSets", "IterTools", "Pkg", "Random", "RangeArrays", "Test"]
git-tree-sha1 = "2e2536e9e6f27c4f8d09d8442b61a7ae0b910c28"
uuid = "39de3d68-74b9-583c-8d2d-e117c070f3a9"
version = "0.3.0"
[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
[[BinaryProvider]]
View logistic.r
library(ggplot2)
library(BayesLogit)
N <- 100
X <- data.frame(X1=rnorm(N),X2=rnorm(N))
logistic <- function (x) 1/(1+exp(-x))
nu <- 2*X$X1
pi <- 1/(1+exp(-nu))
X$y <- rbinom(N,1,pi)
@simonbyrne
simonbyrne / thread_sparse.jl
Last active Jan 17, 2018
Sparse matrix - vector multiplication with threads.
View thread_sparse.jl
# Gives roughly a 2x speedup using JULIA_NUM_THREADS=2
# requires 0.7, due to closure type inference bug in 0.6
using Random, SparseArrays
srand(1); X = sprand(20_000,100_000,0.1); v = ones(100_000);
function mul(X,v)
m,n = size(X)
U = zeros(size(X,1), Threads.nthreads())