Out of Resources Error When Copying From Large Host Addresses (>32 bit)

I was trying to render some very large images with my program, and I’ve noticed what appears to be a 64-bitness error in OpenCL. If you try to copy a buffer to the device with a host address above 4 GB, it will return an out of resources error the next time clFlush is called. It doesn’t matter what size the buffer is, just that the host address does not fit in 32 bits.