Skip to content

Instantly share code, notes, and snippets.

@ekinakyurek ekinakyurek/benchmark.sh
Last active Feb 15, 2019

Embed
What would you like to do?
KnetArraysxCuarrays
#!/usr/bin/env bash
set -uxe
cd $(mktemp -d)
git clone https://github.com/ekinakyurek/Mac-Network .
sed -i '1d' benchmark.jl # remove pkg import/activate
export JULIA_DEPOT_PATH=$(mktemp -d)
julia --project -e 'using Pkg; Pkg.instantiate(); pkg"free Knet"; pkg"add Knet#cuarrays CuArrays#master CUDAnative#master CUDAdrv#master"'
julia --project -L benchmark.jl -e 'for i in 1:3 @show @time benchmark(M,o;N=100) end'
export JULIA_DEPOT_PATH=$(mktemp -d)
julia --project -e 'using Pkg; Pkg.instantiate(); pkg"free Knet";pkg"add Knet#master"'
julia --project -L benchmark.jl -e 'for i in 1:3 @show @time benchmark(M,o;N=100) end'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.