Skip to content

Instantly share code, notes, and snippets.

View mdavezac's full-sized avatar

Mayeul d'Avezac mdavezac

  • Kagenova
  • London
View GitHub Profile
@mdavezac
mdavezac / jmpi.jl
Last active December 29, 2015 14:29
Trying out julia + mpi
const openmpi = find_library(["libmpi.so", "libmpi.dylib"])
const mpich = find_library(["libmpich.so", "libmpich.dylib"])
if openmpi != ""
function init_openmpi()
l = Cint[0]
handle = dlopen(openmpi, RTLD_GLOBAL)
mpi_init = dlsym(handle, :MPI_Init)
mpi_finalize_symbol = dlsym(handle, :MPI_Finalize)
a = ccall(mpi_init, Int, (Ptr{Cint}, Ptr{Cint}), l, l)
@mdavezac
mdavezac / create_image.jl
Last active August 29, 2015 14:21
create julia image for specific virtual env
#! /home/mdavezac/usr/src/julia-cb9bcae93a/bin/julia
packages = ["Gadfly", "IJulia", "ZMQ", "Winston", "Tk", "Cairo",
"ProfileView", "ImageView"]
syspath = joinpath(expanduser("~"), ENV["VIRTUAL_ENV"], "share", "julia")
ispath(syspath) || mkdir(syspath)
isdir(syspath) || error(syspath, " is not a directory")
include(joinpath(JULIA_HOME, Base.DATAROOTDIR, "julia", "build_sysimg.jl"))
Pkg.update()
@mdavezac
mdavezac / MPI_benchmark_example
Last active September 24, 2024 19:46
google/benchmark example with MPI
# for gist naming purposes
@mdavezac
mdavezac / SoptShopTalk.ipynb
Last active October 26, 2016 10:11
Short talk describing the sopt (https://github.com/basp-group/sopt) compressed sensing library
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mdavezac
mdavezac / .gitignore
Last active August 18, 2017 11:01
China Workshop RSE talk
node_modules/
theme/