bug fix for wrong usage of checkGPU && port to windows with msvc
10 files changed