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.
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
Merge pull request #34 from szagoruyko/master

OS X build with CUDA 6.0 and clang
torch.xxx() functions are now aware of CudaTensor
adding operator overloading, made add/mul/div consistent with torch7/TH, made all the blas functions (addmv,addr,addmm) consistent with torch7/TH and added the missing ones (mv,mm,ger)
registering all functions with torch.{xxx} dispatcher
Merge pull request #68 from torch/fixallthings

operator overloading + interface consistent with TH (add/mul/div, blas calls) + torch.{xxx} dispatcher aware of cuda
fixing inconsistent API in addcmul, addcdiv
Merge pull request #71 from torch/addcfix

fixing inconsistent API in addcmul, addcdiv
fixing cadd API inconsistency
Merge pull request #72 from torch/cadd_fixapi

fixing cadd API inconsistency
fixing min/max to return indices as well (when given an arbitrary dimension
Merge pull request #73 from torch/maxmin_fix

fixing min/max to return indices as well (given an arbitrary dimension)
unit tests for round, prod, sum, cumsum