Skip to content

Instantly share code, notes, and snippets.

Avatar
💩
dealing with life

Mayeul d'Avezac mdavezac

💩
dealing with life
  • Kagenova
  • London
View GitHub Profile
@mdavezac
mdavezac / jmpi.jl
Last active Dec 29, 2015
Trying out julia + mpi
View jmpi.jl
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 Aug 29, 2015
create julia image for specific virtual env
View create_image.jl
#! /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 Mar 8, 2021
google/benchmark example with MPI
View MPI_benchmark_example
# for gist naming purposes
@mdavezac
mdavezac / SoptShopTalk.ipynb
Last active Oct 26, 2016
Short talk describing the sopt (https://github.com/basp-group/sopt) compressed sensing library
View SoptShopTalk.ipynb
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 Aug 18, 2017
China Workshop RSE talk
View .gitignore
node_modules/
theme/