Yes, this exact code works for me (after freezing my computer for few second due to memory usage) and outputs:
6021
(100000000L, 1L)
import torch
from torch.autograd import Variable
import torch.nn as nn

torch.backends.cudnn.enabled=False
x = Variable( torch.rand(100000000,1).contiguous()).cuda()

print torch.backends.cudnn.version()

bn = nn.BatchNorm1d(1)
bn.cuda()

xbn = bn(x)
print(xbn.size())