One random number generator per GPU.

Instead of having a single generator shared between GPUs, create a seperate
generator for each GPU. A generator is only initialized when the corresponding
GPU is being used.
Merge pull request #53 from dominikgrewe/random_generator_per_gpu

One random number generator per GPU.
Merge pull request #56 from torch/THCudaBlas

added THCudaBlas, now handles a bunch of corner cases wrt stride = 1
added THCudaBlas, now handles a bunch of corner cases. Also fixes #55 and another bug in addr
adding a test for max, and also changing the tests to check for upto 4 return arguments
Use curand device API for random number generation to expose RNG state.

Change RNG code from using curand's host API to the device API. This
allows us to expose the state of the RNG to the user for saving and
restoring.
making logical operators syntax consistent with torch
Merge branch 'master' of github.com:torch/cutorch

Conflicts:
	test/test.lua
added clamp CudaTensor method
Merge pull request #58 from jonathantompson/clamp

added clamp CudaTensor method
Merge pull request #57 from dominikgrewe/curand_dev

Use curand device API for random number generation to expose RNG state.
Fix computation of number of thread blocks in random number generator.

Move definition of DIVUP from THCTensorCopy.cu to THCGeneral.h.
Use DIVUP to compute the number of thread blocks for random number
generation.
Merge pull request #63 from dominikgrewe/rng_fix

Fix computation of number of thread blocks in random number generator.
added assertion
build with clang and cuda 6.0
cmake/FindCUDA
updated cmake FindCUDA files