Last active
February 15, 2019 23:20
-
-
Save ekinakyurek/a01e5fd35fbaca9ebc4d13b21a347269 to your computer and use it in GitHub Desktop.
KnetArraysxCuarrays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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