I tried this under both anaconda python and a standard system python virtualenv.
For standard python, I used:
virtualenv venv
source venv/bin/activate
pip install http://download.pytorch.org/whl/cu90/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl
pip install torchvision
python foo.py

The output I see is:
('using gpu:', 1L)
loading params...

I had to set GPUNO to 1 because I didn’t have 7 GPUs on the machine I am testing.
Does using a GPUNO of 0 or 1 fix it?