Skip to content

Commit 634c6e5

Browse files
committed
ocl: fixed condition
1 parent c2c2a10 commit 634c6e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/acc/opencl/acc_opencl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ int c_dbcsr_acc_opencl_kernel(size_t source_kind, const char source[], const cha
14761476
const cl_device_id device_id = c_dbcsr_acc_opencl_config.devices[c_dbcsr_acc_opencl_config.device_id];
14771477
const c_dbcsr_acc_opencl_device_t* const devinfo = &c_dbcsr_acc_opencl_config.device;
14781478
int result = ((NULL != source && NULL != kernel_name && '\0' != *kernel_name) ? EXIT_SUCCESS : EXIT_FAILURE);
1479-
int ok = EXIT_SUCCESS, source_is_cl = 1, nchar = 0;
1479+
int ok = EXIT_SUCCESS, source_is_cl = (2 > source_kind), nchar = 0;
14801480
size_t size_src = 0, size = 0;
14811481
cl_program program = NULL;
14821482
FILE* file_src = NULL;

0 commit comments

Comments
 (0)