squash! main/cs: Implement query for COMPUTE_WORK_GROUP_SIZE.

v2: Improve error message.