Skip to content

Commit 13be379

Browse files
author
jenkins
committed
git subrepo pull (merge) ore
subrepo: subdir: "ore" merged: "ec26ed02fd" upstream: origin: "git@gitlab.acadiasoft.net:qs/ore.git" branch: "master" commit: "668c2aabad" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "73a0129"
2 parents 50ac18a + 668c2aa commit 13be379

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)