Skip to content

Instantly share code, notes, and snippets.

View simonbyrne's full-sized avatar
🦘

Simon Byrne simonbyrne

🦘
View GitHub Profile
# mpiexec(cmd -> run(`$cmd -n 1 printenv`))
MPI_IMPL=none
TRAVIS_ARCH=amd64
TRAVIS_FILTERED=redirect_io
rvm_bin_path=/Users/travis/.rvm/bin
using CUDAdrv
using CUDAnative
using CuArrays
using CUDAapi
using GPUifyLoops
using BenchmarkTools
using StaticArrays
using Test
using Pkg
using LinearAlgebra
using StaticArrays
using GPUifyLoops
@static if haskey(Pkg.installed(), "CuArrays")
using CUDAdrv
using CUDAnative
using CuArrays
CuArrays.allowscalar(false)
$ 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
using Cassette
Cassette.@context FizzBuzzCtx
function Cassette.overdub(ctx::FizzBuzzCtx, ::typeof(string), i::Integer)
if i % 3 == 0
if i % 5 == 0
"fizzbuzz"
else
"fizz"
@simonbyrne
simonbyrne / output cpu
Created May 12, 2019 06:54
HPC CI d4e02e4e7925c8358a1160062fda5ca2b0de9bdb
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 06:52
HPC CI d4e02e4e7925c8358a1160062fda5ca2b0de9bdb
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 06:36
HPC CI d4e02e4e7925c8358a1160062fda5ca2b0de9bdb
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
@simonbyrne
simonbyrne / ccallmacro.jl
Created January 26, 2017 09:57
A julia ccall macro
@eval macro $(Symbol("ccall"))(expr)
expr.head == :(::) && expr.args[1].head == :call || error("Invalid use of @ccall")
rettype = expr.args[2]
fname = expr.args[1].args[1]
cargs = expr.args[1].args[2:end]
arglist = []
typlist = []
tupexpr = :(())
ccexpr = :(ccall($(esc(fname)), $(esc(rettype)), $(esc(tupexpr))))