Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docking
ocladock-fpga
Commits
3716d0ce
Commit
3716d0ce
authored
May 22, 2018
by
lvs
Browse files
corrected attribute reqd_work_group_size
parent
d525ab8d
Changes
15
Hide whitespace changes
Inline
Side-by-side
ofdock_taskpar_xl/device/Krnl_Conform.cl
View file @
3716d0ce
...
...
@@ -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
)
...
...
ofdock_taskpar_xl/device/Krnl_GA.cl
View file @
3716d0ce
...
...
@@ -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)
...
...
ofdock_taskpar_xl/device/Krnl_IGL_Arbiter.cl
View file @
3716d0ce
...
...
@@ -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
;
...
...
ofdock_taskpar_xl/device/Krnl_InterE.cl
View file @
3716d0ce
...
...
@@ -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,
...
...
ofdock_taskpar_xl/device/Krnl_IntraE.cl
View file @
3716d0ce
...
...
@@ -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,
...
...
ofdock_taskpar_xl/device/Krnl_LS.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_LS2.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_LS3.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_LS4.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_LS5.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_LS6.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_LS7.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_LS8.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_LS9.cl
View file @
3716d0ce
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
/*
__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
)
...
...
ofdock_taskpar_xl/device/Krnl_PRNG.cl
View file @
3716d0ce
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment