optimized DeviceInfo class and ensureSizeIsEnough
Merge pull request #512 from jet47:core-gpu-updates