This is the pull request for 389 on Piazza. Some things to note:
I removed out2 in the first L23 example as it caused the assertion to fail.
I updated all examples (I think) to use StreamFlags::DEFAULT.
I did not update notebook. Is there a script that does this, or should I copy-paste from L23.tex?
I did not recompile. My environment's not set up to compile, but I'm assuming yours is.
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:
Login on ecetesla1;
Change the DeviceBuffer sizes from 10 to 102400;
Run the following until the assertion fails:
cargo build --release
while true; do
./target/release/mybin
done
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!
Hello,
This is the pull request for 389 on Piazza. Some things to note:
out2
in the first L23 example as it caused the assertion to fail.StreamFlags::DEFAULT
.L23.tex
?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:DeviceBuffer
sizes from10
to102400
;Please let me know if I should add, remove, or update anything. Thanks!