Add cuda compute capabilities 3.0, 3.5, 5.0

Untested. I've ordered a maxwell gpu and will test this when I get it installed (and then merge). Making this a pull request in case someone else is able to test it.
I didn't think Tegra prior to the K1 supported CUDA at all...



On Fri, Jul 18, 2014 at 10:26 AM, Dillon Sharlet <notifications@github.com>
wrote:

> In src/runtime/cuda.cpp:
>
> > +        if (err != CUDA_SUCCESS) {
> > +            halide_error_varargs(user_context, "CUDA: cuDeviceGetName failed (%d)", err);
> > +            return err;
> > +        }
> > +
> > +        size_t memory = 0;
> > +        err = cuDeviceTotalMem(&memory, dev);
> > +        DEBUG_PRINTF(user_context, "      total memory: %d MB\n", (int)(memory >> 20));
> > +
> > +        if (err != CUDA_SUCCESS) {
> > +            halide_error_varargs(user_context, "CUDA: cuDeviceTotalMem failed (%d)", err);
> > +            return err;
> > +        }
> > +
> > +        int max_threads_per_block = 0;
> > +        err = cuDeviceGetAttribute(&max_threads_per_block, 1, dev);
>
> I think we should bring in the CUdevice_attribute enum into our
> mini_cuda.h, instead of using raw constants here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/halide/Halide/pull/375/files#r15122914>.
>