File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,12 +56,14 @@ class OpenClFramework : public ComputeFramework {
5656
5757 static boost::shared_mutex mutex_;
5858 static bool initialized_;
59+ #ifdef ORE_ENABLE_OPENCL
5960 static cl_uint nPlatforms_;
60- static std::string platformName_[ORE_OPENCL_MAX_N_PLATFORMS];
61- static std::string deviceName_[ORE_OPENCL_MAX_N_PLATFORMS][ORE_OPENCL_MAX_N_DEVICES];
6261 static cl_uint nDevices_[ORE_OPENCL_MAX_N_PLATFORMS];
6362 static cl_device_id devices_[ORE_OPENCL_MAX_N_PLATFORMS][ORE_OPENCL_MAX_N_DEVICES];
6463 static cl_context context_[ORE_OPENCL_MAX_N_PLATFORMS][ORE_OPENCL_MAX_N_DEVICES];
64+ #endif
65+ static std::string platformName_[ORE_OPENCL_MAX_N_PLATFORMS];
66+ static std::string deviceName_[ORE_OPENCL_MAX_N_PLATFORMS][ORE_OPENCL_MAX_N_DEVICES];
6567 static std::vector<std::pair<std::string, std::string>> deviceInfo_[ORE_OPENCL_MAX_N_PLATFORMS]
6668 [ORE_OPENCL_MAX_N_DEVICES];
6769 static bool supportsDoublePrecision_[ORE_OPENCL_MAX_N_PLATFORMS][ORE_OPENCL_MAX_N_DEVICES];
You can’t perform that action at this time.
0 commit comments