#pragma once #include #include #include #ifdef linux #include #include #elif defined _WIN32 #include #include #include #include #elif defined TARGET_OS_MAC # include # include #endif struct platform_tracker { }; class Clapper { public: enum PLATFORM_TYPE { GPU, CPU, ALL }; Clapper(); ~Clapper(); void init(); void print_sys_info(); private: bool initialized = false; cl_uint platform_count; std::vector platformIds; cl_uint deviceIdCount = 0; std::vector deviceIds; };