CUDA: Many fixes in the backend

This commit is contained in:
Philippe Tillet
2015-05-13 02:20:44 -04:00
parent f55e499ef5
commit 05e730f06e
17 changed files with 104 additions and 76 deletions

View File

@@ -80,12 +80,12 @@ void Kernel::setSizeArg(unsigned int index, size_t N)
#endif
case OPENCL:
if(address_bits_==32){
cl_int NN = N;
int32_t NN = N;
h_.cl->setArg(index, 4, &NN);
}
else if(address_bits_==64)
{
cl_long NN = N;
int64_t NN = N;
h_.cl->setArg(index, 8, &NN);
}
else