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
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