Skip to content

Commit 41cc47f

Browse files
authored
initialize err variable. (#21)
1 parent c8b14c0 commit 41cc47f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6-
76
# C extensions and binary files
87
*.o
98
*.so
@@ -15,6 +14,9 @@ build
1514
build_cmake
1615
install
1716

17+
# Code project files
18+
.vscode
19+
1820
# Eclipse project files
1921
.project
2022
.pydevproject

backends/source/dppl_opencl_interface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static int support_int64_atomics(cl_device_id *device)
285285
size_t size;
286286
char *value;
287287

288-
clGetDeviceInfo(*device, CL_DEVICE_EXTENSIONS, 0, NULL, &size);
288+
err = clGetDeviceInfo(*device, CL_DEVICE_EXTENSIONS, 0, NULL, &size);
289289
if (err != CL_SUCCESS ) {
290290
printf("Unable to obtain device info for param\n");
291291
return DP_GLUE_FAILURE;
@@ -307,7 +307,7 @@ static int support_float64_atomics(cl_device_id *device)
307307
size_t size;
308308
char *value;
309309

310-
clGetDeviceInfo(*device, CL_DEVICE_EXTENSIONS, 0, NULL, &size);
310+
err = clGetDeviceInfo(*device, CL_DEVICE_EXTENSIONS, 0, NULL, &size);
311311
if (err != CL_SUCCESS ) {
312312
printf("Unable to obtain device info for param\n");
313313
return DP_GLUE_FAILURE;

0 commit comments

Comments
 (0)