cudaMalloc Usage How many bytes does it allocate!!?

when I do ‘float* d_A; cudaMalloc(&d_A, size);’ and ‘cudaMalloc((void **)&gpu_array,arraySize)’; how many bytes will i be allocating!!?

Does void allocate the max datatype memory!!?

I don’t think type-casting the device_pointer by void, will have any effect on the memory allocation. The size of the allocated memory depends on the size you enter…