Commit 96083e83 authored by lvs's avatar lvs
Browse files

corrected attribute reqd_work_group_size


Former-commit-id: 3716d0ce
parent a06e6b4a
......@@ -3,7 +3,10 @@
// the genotype fed by any producer logic/kernel (IC, GG, LSs).
// Originally from: processligand.c
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Conform(
__global const int* restrict KerConstStatic_rotlist_const,
#if defined (FIXED_POINT_CONFORM)
......
......@@ -259,7 +259,10 @@ fixedpt fixedpt_map_angle_360(fixedpt angle)
// Lamarckian Genetic-Algorithm (GA): GA + LS (Local Search)
// Originally from: searchoptimum.c
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_GA(__global float* restrict GlobPopulationCurrent,
__global float* restrict GlobEnergyCurrent,
#if defined(SINGLE_COPY_POP_ENE)
......
......@@ -15,7 +15,10 @@
// This has been later optimized, so now genotypes go directly
// from producer logic/kernel (IC, GG, LSs) to the consumer (Conform) kernel.
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_IGL_Arbiter(/*unsigned char DockConst_num_of_genes*/) {
char active = 0x01;
......
......@@ -6,7 +6,10 @@
// a very high value will be added to the current energy as a penalty.
// Originally from: processligand.c
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_InterE(
__global const float* restrict GlobFgrids,
......
......@@ -12,7 +12,10 @@ float sqrt_custom(const float x)
// contributor-pairs.
// Originally from: processligand.c
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_IntraE(
__constant float* restrict KerConstStatic_atom_charges_const,
__constant char* restrict KerConstStatic_atom_types_const,
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS1)
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS2(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS2)
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS3(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS3)
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS4(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS4)
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS5(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS5)
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS6(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS6)
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS7(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS7)
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS8(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS8)
......
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_LS9(
unsigned short DockConst_max_num_of_iters,
#if defined (FIXED_POINT_LS9)
......
......@@ -2,8 +2,10 @@
// PRNG generators are implemented as Linear Feedback Shift Registers (LFSR)
// All are 32-bit LFRS, feedback taps: 30, 20, 26, 25
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_BT_ushort_float(unsigned int Host_seed1,
unsigned int Host_seed2,
unsigned int DockConst_pop_size){
......@@ -68,8 +70,10 @@ void Krnl_Prng_BT_ushort_float(unsigned int Host_seed1,
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_GG_uchar(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -121,7 +125,10 @@ void Krnl_Prng_GG_uchar(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_GG_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -169,8 +176,10 @@ void Krnl_Prng_GG_float(unsigned int Host_seed,
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS123_ushort(unsigned int Host_seed1,
unsigned int Host_seed2,
unsigned int Host_seed3,
......@@ -272,8 +281,10 @@ void Krnl_Prng_LS123_ushort(unsigned int Host_seed1,
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -331,7 +342,10 @@ void Krnl_Prng_LS_float(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS2_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -389,7 +403,10 @@ void Krnl_Prng_LS2_float(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS3_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -448,7 +465,10 @@ void Krnl_Prng_LS3_float(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS4_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -506,7 +526,10 @@ void Krnl_Prng_LS4_float(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS5_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -564,7 +587,10 @@ void Krnl_Prng_LS5_float(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS6_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -622,7 +648,10 @@ void Krnl_Prng_LS6_float(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS7_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -680,7 +709,10 @@ void Krnl_Prng_LS7_float(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS8_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......@@ -738,7 +770,10 @@ void Krnl_Prng_LS8_float(unsigned int Host_seed,
} // End of while(active)
}
/*
__kernel __attribute__ ((max_global_work_dim(0)))
*/
__kernel __attribute__ ((reqd_work_group_size(1,1,1)))
void Krnl_Prng_LS9_float(unsigned int Host_seed,
unsigned char DockConst_num_of_genes){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment