Skip to content

Instantly share code, notes, and snippets.

@ranjanan
Created November 11, 2015 08:24
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 ranjanan/dc8f5912a1080415ff6b to your computer and use it in GitHub Desktop.
Save ranjanan/dc8f5912a1080415ff6b to your computer and use it in GitHub Desktop.
How to reproduce seg faults for multi-threaded Julia
First,
git clone https://github.com/ranjanan/MT-Workloads.git
Then cd into ALS/
On the julia REPL,
include("ALS.jl")
main()
First,
git clone https://github.com/ranjanan/MT-Workloads.git
cd into Graph500/thread/
On the julia REPL,
include("graph500.jl")
graph500(15,15)
First,
git clone https://github.com/ranjanan/MT-Workloads.git
cd into PageRank/
On the julia REPL,
include("pagerank.jl")
API("web-google.txt")
This file web-google.txt should be available in the same folder. If not, you can download it here: http://snap.stanford.edu/data/web-Google.html
First,
git clone https://github.com/ranjanan/MT-Workloads.git
cd into thread-safe/
This basically implements a type called tsqueue which just contains a vector and a SpinLock. Everytime you modify the array in a threaded environment, it locks, gets modified, then unlocks.
On the julia REPL,
include("queue.jl")
include("test.jl")
#This test doesn't pass for some odd reason, and I was wondering why.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment