This is with Cuda 8.0, cudnn 6, Ubuntu 14.04  (the Amazon Deep Learning AMI), with PyTorch installed from source  a couple months ago.
And incidentally it works fine if I use a smaller tensor size, like say 100000 instead of 10000000