Commit c86f999d authored by Leonardo Solis's avatar Leonardo Solis
Browse files

#28, replaced knrl refs: k35,k7,k14,k20 to krnl_prng{ls123_ushort,ls_float,ls2_float,ls3_float}

parent ac0223b8
......@@ -29,14 +29,21 @@ ENABLE_KRNL_PRNG_BT_USHORT_FLOAT = YES
ENABLE_KRNL_PRNG_GG_UCHAR = YES
ENABLE_KRNL_PRNG_GG_FLOAT = YES
# ls123 prng
ENABLE_K35 = YES
ENABLE_KRNL_PRNG_LS123_USHORT = YES
ENABLE_KRNL_PRNG_LS_FLOAT = YES
ENABLE_KRNL_PRNG_LS2_FLOAT = YES
ENABLE_KRNL_PRNG_LS3_FLOAT = YES
ENABLE_K7 = YES
ENABLE_K14 = YES
ENABLE_K20 = YES
# prng ls4, ls5
ENABLE_K37 = YES
......@@ -131,30 +138,49 @@ else
KRNL_PRNG_GG_FLOAT =
endif
ifeq ($(ENABLE_KRNL_PRNG_LS123_USHORT),YES)
KRNL_PRNG_LS123_USHORT =-DENABLE_KRNL_PRNG_LS123_USHORT
else
KRNL_PRNG_LS123_USHORT =
endif
ifeq ($(ENABLE_KRNL_PRNG_LS_FLOAT),YES)
KRNL_PRNG_LS_FLOAT =-DENABLE_KRNL_PRNG_LS_FLOAT
else
KRNL_PRNG_LS_FLOAT =
endif
ifeq ($(ENABLE_KRNL_PRNG_LS2_FLOAT),YES)
KRNL_PRNG_LS2_FLOAT =-DENABLE_KRNL_PRNG_LS2_FLOAT
else
KRNL_PRNG_LS2_FLOAT =
endif
ifeq ($(ENABLE_K7),YES)
K7 =-DENABLE_KERNEL7
ifeq ($(ENABLE_KRNL_PRNG_LS3_FLOAT),YES)
KRNL_PRNG_LS3_FLOAT =-DENABLE_KRNL_PRNG_LS3_FLOAT
else
K7 =
KRNL_PRNG_LS3_FLOAT =
endif
ifeq ($(ENABLE_K12),YES)
K12 =-DENABLE_KERNEL12
else
K12 =
endif
ifeq ($(ENABLE_K14),YES)
K14 =-DENABLE_KERNEL14
else
K14 =
endif
ifeq ($(ENABLE_K15),YES)
K15 =-DENABLE_KERNEL15
......@@ -162,11 +188,7 @@ else
K15 =
endif
ifeq ($(ENABLE_K20),YES)
K20 =-DENABLE_KERNEL20
else
K20 =
endif
ifeq ($(ENABLE_K21),YES)
K21 =-DENABLE_KERNEL21
......@@ -180,11 +202,7 @@ else
K27 =
endif
ifeq ($(ENABLE_K35),YES)
K35 =-DENABLE_KERNEL35
else
K35 =
endif
......@@ -276,10 +294,13 @@ ENABLE_KERNELS = $(KRNL_GA) \
$(KRNL_PRNG_BT_USHORT_FLOAT) \
$(KRNL_PRNG_GG_UCHAR) \
$(KRNL_PRNG_GG_FLOAT) \
$(K7) \
$(K12) $(K14) $(K15) $(K20) \
$(K21) $(K27) \
$(K35) $(K37) $(K38) $(K39) $(K40) \
$(KRNL_PRNG_LS123_USHORT) \
$(KRNL_PRNG_LS_FLOAT) \
$(KRNL_PRNG_LS2_FLOAT) \
$(KRNL_PRNG_LS3_FLOAT) \
$(K12) $(K15) \
$(K21) $(K27) \
$(K37) $(K38) $(K39) $(K40) \
$(K41) $(K42) $(K43) $(K44) $(K45) $(K46) $(K47) $(K48)
# =============================
......
......@@ -83,6 +83,32 @@ static cl_kernel kernel_prng_gg_float = NULL;
static const char *name_krnl_prng_gg_float = "Krnl_Prng_GG_float";
#endif
#ifdef ENABLE_KRNL_PRNG_LS123_USHORT
static cl_command_queue command_queue_prng_ls123_ushort = NULL;
static cl_kernel kernel_prng_ls123_ushort = NULL;
static const char *name_krnl_prng_ls123_ushort = "Krnl_Prng_LS123_ushort";
#endif
#ifdef ENABLE_KRNL_PRNG_LS_FLOAT
static cl_command_queue command_queue_prng_ls_float = NULL;
static cl_kernel kernel_prng_ls_float = NULL;
static const char *name_krnl_prng_ls_float = "Krnl_Prng_LS_float";
#endif
#ifdef ENABLE_KRNL_PRNG_LS2_FLOAT
static cl_command_queue command_queue_prng_ls2_float = NULL;
static cl_kernel kernel_prng_ls2_float = NULL;
static const char *name_krnl_prng_ls2_float = "Krnl_Prng_LS2_float";
#endif
#ifdef ENABLE_KRNL_PRNG_LS3_FLOAT
static cl_command_queue command_queue_prng_ls3_float = NULL;
static cl_kernel kernel_prng_ls3_float = NULL;
static const char *name_krnl_prng_ls3_float = "Krnl_Prng_LS3_float";
#endif
......@@ -91,29 +117,6 @@ static const char *name_krnl_prng_gg_float = "Krnl_Prng_GG_float";
#ifdef ENABLE_KERNEL35
static cl_command_queue command_queue35 = NULL;
static cl_kernel kernel35 = NULL;
static const char *name_k35 = "Krnl_Prng_LS123_ushort";
#endif
#ifdef ENABLE_KERNEL7
static cl_command_queue command_queue7 = NULL;
static cl_kernel kernel7 = NULL;
static const char *name_k7 = "Krnl_Prng_LS_float";
#endif
#ifdef ENABLE_KERNEL14
static cl_command_queue command_queue14 = NULL;
static cl_kernel kernel14 = NULL;
static const char *name_k14 = "Krnl_Prng_LS2_float";
#endif
#ifdef ENABLE_KERNEL20
static cl_command_queue command_queue20 = NULL;
static cl_kernel kernel20 = NULL;
static const char *name_k20 = "Krnl_Prng_LS3_float";
#endif
#ifdef ENABLE_KERNEL37
static cl_command_queue command_queue37 = NULL;
......@@ -1032,6 +1035,41 @@ printf("%i %i\n", dockpars.num_of_intraE_contributors, myligand_reference.num_of
#endif
#endif // End of ENABLE_KRNL_PRNG_GG_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS123_USHORT // Krnl_PRNG_LS123_ushort
setKernelArg(kernel_prng_ls123_ushort,9, sizeof(unsigned int), &dockpars.pop_size);
#if !defined(SW_EMU)
setKernelArg(kernel_prng_ls123_ushort,10, sizeof(mem_dummy), &mem_dummy);
#endif
#endif // End of ENABLE_KRNL_PRNG_LS123_USHORT
#ifdef ENABLE_KRNL_PRNG_LS_FLOAT // Krnl_PRNG_float
setKernelArg(kernel_prng_ls_float,1, sizeof(unsigned char), &dockpars.num_of_genes);
#if !defined(SW_EMU)
setKernelArg(kernel_prng_ls_float,2, sizeof(mem_dummy), &mem_dummy);
#endif
#endif // End of ENABLE_KRNL_PRNG_LS_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS2_FLOAT // Krnl_PRNG_LS2_float
setKernelArg(kernel_prng_ls2_float,1, sizeof(unsigned char), &dockpars.num_of_genes);
#if !defined(SW_EMU)
setKernelArg(kernel_prng_ls2_float,2, sizeof(mem_dummy), &mem_dummy);
#endif
#endif // End of ENABLE_KRNL_PRNG_LS2_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS3_FLOAT // Krnl_PRNG_LS3_float
setKernelArg(kernel_prng_ls3_float,1, sizeof(unsigned char), &dockpars.num_of_genes);
#if !defined(SW_EMU)
setKernelArg(kernel_prng_ls3_float,2, sizeof(mem_dummy), &mem_dummy);
#endif
#endif // End of ENABLE_KRNL_PRNG_LS3_FLOAT
......@@ -1043,17 +1081,7 @@ printf("%i %i\n", dockpars.num_of_intraE_contributors, myligand_reference.num_of
#ifdef ENABLE_KERNEL7 // Krnl_PRNG_float
setKernelArg(kernel7,1, sizeof(unsigned char), &dockpars.num_of_genes);
#if !defined(SW_EMU)
setKernelArg(kernel7,2, sizeof(mem_dummy), &mem_dummy);
#endif
#endif // End of ENABLE_KERNEL7
// Kernel 11 has no args
......@@ -1098,13 +1126,7 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
#endif
#endif // End of ENABLE_KERNEL12
#ifdef ENABLE_KERNEL14 // Krnl_PRNG_LS2_float
setKernelArg(kernel14,1, sizeof(unsigned char), &dockpars.num_of_genes);
#if !defined(SW_EMU)
setKernelArg(kernel14,2, sizeof(mem_dummy), &mem_dummy);
#endif
#endif // End of ENABLE_KERNEL14
#ifdef ENABLE_KERNEL15 // Krnl_LS2
//setKernelArg(kernel15,0, sizeof(unsigned int), &dockpars.max_num_of_iters);
......@@ -1131,13 +1153,7 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
#endif
#endif // End of ENABLE_KERNEL15
#ifdef ENABLE_KERNEL20 // Krnl_PRNG_LS3_float
setKernelArg(kernel20,1, sizeof(unsigned char), &dockpars.num_of_genes);
#if !defined(SW_EMU)
setKernelArg(kernel20,2, sizeof(mem_dummy), &mem_dummy);
#endif
#endif // End of ENABLE_KERNEL20
#ifdef ENABLE_KERNEL21 // Krnl_LS3
//setKernelArg(kernel21,0, sizeof(unsigned int), &dockpars.max_num_of_iters);
......@@ -1174,13 +1190,7 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
#endif
#endif // End of ENABLE_KERNEL27
#ifdef ENABLE_KERNEL35 // Krnl_PRNG_LS123_ushort
setKernelArg(kernel35,9, sizeof(unsigned int), &dockpars.pop_size);
#if !defined(SW_EMU)
setKernelArg(kernel35,10, sizeof(mem_dummy), &mem_dummy);
#endif
#endif // End of ENABLE_KERNEL35
......@@ -1452,6 +1462,32 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
setKernelArg(kernel_prng_gg_float,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt]);
#endif // End of ENABLE_KRNL_PRNG_GG_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS123_USHORT // Krnl_PRNG_LS123_ushort
setKernelArg(kernel_prng_ls123_ushort,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 5]);
setKernelArg(kernel_prng_ls123_ushort,1, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 6]);
setKernelArg(kernel_prng_ls123_ushort,2, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 7]);
setKernelArg(kernel_prng_ls123_ushort,3, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 8]);
setKernelArg(kernel_prng_ls123_ushort,4, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 9]);
setKernelArg(kernel_prng_ls123_ushort,5, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 10]);
setKernelArg(kernel_prng_ls123_ushort,6, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 11]);
setKernelArg(kernel_prng_ls123_ushort,7, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 12]);
setKernelArg(kernel_prng_ls123_ushort,8, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 13]);
#endif // End of ENABLE_KRNL_PRNG_LS123_USHORT
#ifdef ENABLE_KRNL_PRNG_LS_FLOAT // Krnl_PRNG_LS_float
setKernelArg(kernel_prng_ls_float,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 1]);
#endif // End of ENABLE_KRNL_PRNG_LS_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS2_FLOAT // Krnl_PRNG_LS2_float
setKernelArg(kernel_prng_ls2_float,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 3]);
#endif // End of ENABLE_KRNL_PRNG_LS2_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS3_FLOAT // Krnl_PRNG_LS3_float
setKernelArg(kernel_prng_ls3_float,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 4]);
#endif // End of ENABLE_KRNL_PRNG_LS3_FLOAT
......@@ -1465,33 +1501,6 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
#ifdef ENABLE_KERNEL7 // Krnl_PRNG_LS_float
setKernelArg(kernel7,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 1]);
#endif // End of ENABLE_KERNEL7
#ifdef ENABLE_KERNEL14 // Krnl_PRNG_LS2_float
setKernelArg(kernel14,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 3]);
#endif // End of ENABLE_KERNEL7
#ifdef ENABLE_KERNEL20 // Krnl_PRNG_LS3_float
setKernelArg(kernel20,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 4]);
#endif // End of ENABLE_KERNEL20
#ifdef ENABLE_KERNEL35 // Krnl_PRNG_LS123_ushort
setKernelArg(kernel35,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 5]);
setKernelArg(kernel35,1, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 6]);
setKernelArg(kernel35,2, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 7]);
setKernelArg(kernel35,3, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 8]);
setKernelArg(kernel35,4, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 9]);
setKernelArg(kernel35,5, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 10]);
setKernelArg(kernel35,6, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 11]);
setKernelArg(kernel35,7, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 12]);
setKernelArg(kernel35,8, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 13]);
#endif // End of ENABLE_KERNEL35
#ifdef ENABLE_KERNEL37 // Krnl_PRNG_LS4_float
setKernelArg(kernel37,0, sizeof(unsigned int), &cpu_prng_seeds[num_of_prng_blocks * run_cnt + 16]);
......@@ -1548,34 +1557,44 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
runKernelTask(command_queue_prng_gg_float,kernel_prng_gg_float,NULL,NULL);
#endif // ENABLE_KRNL_PRNG_GG_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS123_USHORT
runKernelTask(command_queue_prng_ls123_ushort,kernel_prng_ls123_ushort,NULL,NULL);
#endif // ENABLE_KRNL_PRNG_LS123_USHORT
#ifdef ENABLE_KRNL_PRNG_LS_FLOAT
runKernelTask(command_queue_prng_ls_float,kernel_prng_ls_float,NULL,NULL);
#endif // ENABLE_KRNL_PRNG_LS_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS2_FLOAT
runKernelTask(command_queue_prng_ls2_float,kernel_prng_ls2_float,NULL,NULL);
#endif // ENABLE_KRNL_PRNG_LS2_FLOAT
#ifdef ENABLE_KRNL_PRNG_LS3_FLOAT
runKernelTask(command_queue_prng_ls3_float,kernel_prng_ls3_float,NULL,NULL);
#endif // ENABLE_KRNL_PRNG_LS3_FLOAT
#ifdef ENABLE_KERNEL7
runKernelTask(command_queue7,kernel7,NULL,NULL);
#endif // ENABLE_KERNEL7
#ifdef ENABLE_KERNEL12
runKernelTask(command_queue12,kernel12,NULL,NULL);
#endif // ENABLE_KERNEL12
#ifdef ENABLE_KERNEL14
runKernelTask(command_queue14,kernel14,NULL,NULL);
#endif // ENABLE_KERNEL14
#ifdef ENABLE_KERNEL15
runKernelTask(command_queue15,kernel15,NULL,NULL);
#endif // ENABLE_KERNEL14
#endif
#ifdef ENABLE_KERNEL20
runKernelTask(command_queue20,kernel20,NULL,NULL);
#endif // ENABLE_KERNEL20
#ifdef ENABLE_KERNEL21
runKernelTask(command_queue21,kernel21,NULL,NULL);
......@@ -1585,10 +1604,6 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
runKernelTask(command_queue27,kernel27,NULL,NULL);
#endif // ENABLE_KERNEL27
#ifdef ENABLE_KERNEL35
runKernelTask(command_queue35,kernel35,NULL,NULL);
#endif // ENABLE_KERNEL35
#ifdef ENABLE_KERNEL37
runKernelTask(command_queue37,kernel37,NULL,NULL);
#endif // ENABLE_KERNEL37
......@@ -1670,14 +1685,27 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
clFinish(command_queue_prng_gg_float);
#endif
#ifdef ENABLE_KRNL_PRNG_LS123_USHORT
clFinish(command_queue_prng_ls123_ushort);
#endif
#ifdef ENABLE_KRNL_PRNG_LS_FLOAT
clFinish(command_queue_prng_ls_float);
#endif
#ifdef ENABLE_KRNL_PRNG_LS2_FLOAT
clFinish(command_queue_prng_ls2_float);
#endif
#ifdef ENABLE_KRNL_PRNG_LS3_FLOAT
clFinish(command_queue_prng_ls3_float);
#endif
#ifdef ENABLE_KERNEL7
clFinish(command_queue7);
#endif
......@@ -1685,17 +1713,13 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
clFinish(command_queue12);
#endif
#ifdef ENABLE_KERNEL14
clFinish(command_queue14);
#endif
#ifdef ENABLE_KERNEL15
clFinish(command_queue15);
#endif
#ifdef ENABLE_KERNEL20
clFinish(command_queue20);
#endif
#ifdef ENABLE_KERNEL21
clFinish(command_queue21);
......@@ -1705,9 +1729,7 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
clFinish(command_queue27);
#endif
#ifdef ENABLE_KERNEL35
clFinish(command_queue35);
#endif
#ifdef ENABLE_KERNEL37
clFinish(command_queue37);
......@@ -2087,19 +2109,47 @@ bool init() {
checkError(status, "Failed to create kernel prng_gg_float");
#endif
#ifdef ENABLE_KRNL_PRNG_LS123_USHORT
command_queue_prng_ls123_ushort = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue prng_ls123_ushort");
kernel_prng_ls123_ushort = clCreateKernel(program, name_krnl_prng_ls123_ushort, &status);
checkError(status, "Failed to create kernel prng_ls123_ushort");
#endif
#ifdef ENABLE_KRNL_PRNG_LS_FLOAT
command_queue_prng_ls_float = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue prng_ls_float");
kernel_prng_ls_float = clCreateKernel(program, name_krnl_prng_ls_float, &status);
checkError(status, "Failed to create kernel prng_ls_float");
#endif
#ifdef ENABLE_KRNL_PRNG_LS2_FLOAT
command_queue_prng_ls2_float = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue prng_ls2_float");
kernel_prng_ls2_float = clCreateKernel(program, name_krnl_prng_ls2_float, &status);
checkError(status, "Failed to create kernel prng_ls2_float");
#endif
#ifdef ENABLE_KRNL_PRNG_LS3_FLOAT
command_queue_prng_ls3_float = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue20");
kernel_prng_ls3_float = clCreateKernel(program, name_krnl_prng_ls3_float, &status);
checkError(status, "Failed to create kernel prng_ls3_float");
#endif
#ifdef ENABLE_KERNEL7
command_queue7 = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue7");
kernel7 = clCreateKernel(program, name_k7, &status);
checkError(status, "Failed to create kernel");
#endif
......@@ -2110,12 +2160,7 @@ bool init() {
checkError(status, "Failed to create kernel");
#endif
#ifdef ENABLE_KERNEL14
command_queue14 = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue14");
kernel14 = clCreateKernel(program, name_k14, &status);
checkError(status, "Failed to create kernel");
#endif
#ifdef ENABLE_KERNEL15
command_queue15 = clCreateCommandQueue(context, device, 0, &status);
......@@ -2124,12 +2169,7 @@ bool init() {
checkError(status, "Failed to create kernel");
#endif
#ifdef ENABLE_KERNEL20
command_queue20 = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue20");
kernel20 = clCreateKernel(program, name_k20, &status);
checkError(status, "Failed to create kernel");
#endif
#ifdef ENABLE_KERNEL21
command_queue21 = clCreateCommandQueue(context, device, 0, &status);
......@@ -2145,12 +2185,7 @@ bool init() {
checkError(status, "Failed to create kernel");
#endif
#ifdef ENABLE_KERNEL35
command_queue35 = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue26");
kernel35 = clCreateKernel(program, name_k35, &status);
checkError(status, "Failed to create kernel");
#endif
#ifdef ENABLE_KERNEL37
command_queue37 = clCreateCommandQueue(context, device, 0, &status);
......@@ -2276,38 +2311,56 @@ void cleanup() {
if(command_queue_prng_gg_float) {clReleaseCommandQueue(command_queue_prng_gg_float);}
#endif
#ifdef ENABLE_KRNL_PRNG_LS123_USHORT
if(kernel_prng_ls123_ushort) {clReleaseKernel(kernel_prng_ls123_ushort);}
if(command_queue_prng_ls123_ushort) {clReleaseCommandQueue(command_queue_prng_ls123_ushort);}
#endif
#ifdef ENABLE_KRNL_PRNG_LS_FLOAT
if(kernel_prng_ls_float) {clReleaseKernel(kernel_prng_ls_float);}
if(command_queue_prng_ls_float) {clReleaseCommandQueue(command_queue_prng_ls_float);}
#endif
#ifdef ENABLE_KRNL_PRNG_LS2_FLOAT
if(kernel_prng_ls2_float) {clReleaseKernel(kernel_prng_ls2_float);}
if(command_queue_prng_ls2_float) {clReleaseCommandQueue(command_queue_prng_ls2_float);}
#endif
#ifdef ENABLE_KRNL_PRNG_LS3_FLOAT
if(kernel_prng_ls3_float) {clReleaseKernel(kernel_prng_ls3_float);}
if(command_queue_prng_ls3_float) {clReleaseCommandQueue(command_queue_prng_ls3_float);}
#endif