jzarnett / ece459

ECE 459: Programming for Performance
419 stars 133 forks source link

Race Condition #91

Closed mchlswyr closed 1 year ago

mchlswyr commented 1 year ago

Hello,

This is the pull request for 389 on Piazza. Some things to note:

Also, if you want to verify for yourself that there is a race condition in the examples, you can try changing the DeviceBuffer sizes to something very large. I was able to reproduce the race condition in the first example from lecture 23 as follows:

  1. Login on ecetesla1;
  2. Change the DeviceBuffer sizes from 10 to 102400;
  3. Run the following until the assertion fails:
    cargo build --release
    while true; do
    ./target/release/mybin
    done
  4. If it doesn't fail after a couple of seconds, goto 2 and increase the size.

Please let me know if I should add, remove, or update anything. Thanks!

patricklam commented 1 year ago

Thanks! Yes, we have scripts that automatically compile and compile the notebook.