Skip to content

Commit a65ff37

Browse files
pcaspersjenkins
authored andcommitted
QPR-12493 compile issues without ORE_ENABLE_OPENCL flag
1 parent ef7ba07 commit a65ff37

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

QuantExt/qle/math/openclenvironment.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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];

0 commit comments

Comments
 (0)