You need to move the parameters of nn.Linear to cuda. As the error message says, they are currently on cpu.
linear = nn.Linear(100, 200).cuda()
mlp = nn.DataParallel(linear)
mlp(torch.zeros((32, 100)))