Windows 10, Adrenalin 24.1.1. Radeon RX 7900 XTX with 24 GB RAM.
Calling clGetDeviceInfo(...CL_DEVICE_GLOBAL_MEM_SIZE...) returns 51237617664, i. e. 48 GB. Should return 24 GB.