Skip to content

Commit 4828dbd

Browse files
pcaspersjenkins
authored andcommitted
QPR-12487 move var to its scope
1 parent 20da5b7 commit 4828dbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

QuantExt/qle/math/openclenvironment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ void OpenClFramework::init() {
325325
for (std::size_t d = 0; d < nDevices_[p]; ++d) {
326326
char deviceName[ORE_OPENCL_MAX_N_DEV_INFO], driverVersion[ORE_OPENCL_MAX_N_DEV_INFO],
327327
deviceVersion[ORE_OPENCL_MAX_N_DEV_INFO], deviceExtensions[ORE_OPENCL_MAX_N_DEV_INFO_LARGE];
328-
cl_device_fp_config doubleFpConfig;
329328

330329
clGetDeviceInfo(devices_[p][d], CL_DEVICE_NAME, ORE_OPENCL_MAX_N_DEV_INFO, &deviceName, NULL);
331330
clGetDeviceInfo(devices_[p][d], CL_DRIVER_VERSION, ORE_OPENCL_MAX_N_DEV_INFO, &driverVersion, NULL);
@@ -342,6 +341,7 @@ void OpenClFramework::init() {
342341

343342
supportsDoublePrecision_[p][d] = false;
344343
#if CL_VERSION_1_2
344+
cl_device_fp_config doubleFpConfig;
345345
clGetDeviceInfo(devices_[p][d], CL_DEVICE_DOUBLE_FP_CONFIG, sizeof(cl_device_fp_config), &doubleFpConfig,
346346
NULL);
347347
deviceInfo_[p][d].push_back(std::make_pair(

0 commit comments

Comments
 (0)