Skip to content

Instantly share code, notes, and snippets.

@ekinakyurek
Last active February 15, 2019 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekinakyurek/a01e5fd35fbaca9ebc4d13b21a347269 to your computer and use it in GitHub Desktop.
Save ekinakyurek/a01e5fd35fbaca9ebc4d13b21a347269 to your computer and use it in GitHub Desktop.
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