CLR Data Types to CUDA Data Types

Apr 25, 2014 at 1:12 AM
Hi,

Is there a place in ManagedCuda where I can translate CLR Data Type Name to CUDA Data Type Names and vice versa?

Thanks,
Darren
Coordinator
Apr 25, 2014 at 8:55 AM
Hi,

I don't understand what you mean. Could you elaborate a bit more, may by an example, what you want to do?

Michael
Apr 25, 2014 at 12:02 PM
Edited Apr 25, 2014 at 12:14 PM
Hi Michael,

Something like:
public string CudaTypeFromCLRType(Type type)
{
    switch(type.TypeName)
    {
        case "float":
            return ".f32";
            break;
    }
}
Coordinator
Apr 26, 2014 at 12:03 AM
Hi Darren,

no, such a "type translator" does not exist in managedCuda...

Michael
Apr 26, 2014 at 12:18 AM
Kewl. Thanks anyway!