cudaMalloc Limit

I try to Malloc more than 512Mb memory use cudaMalloc on C870 board and it report error.
Does any on know is there any limit on cudaMalloc ?

Did you allocate that much bytes or integers? r u sure it is 512M bytes?

No problems here. I just allocated 1.3 GiB successfully on my C870.

#include <stdio.h>

int main()

    {

    void *data;

    cudaError_t error = cudaMalloc(&data, (int)(1.3*1024*1024*1024));

    if (error != cudaSuccess)

        printf("error");

    else

        printf("success");

   cudaFree(data);

    return 0;

    }