Skip to content
GitLab
Menu
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
8047908d
Commit
8047908d
authored
Sep 13, 2018
by
Leonardo Solis
Browse files
more renamings
Former-commit-id:
1285f59a
parent
274aa6ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
ofdock_taskpar_xl/device/Krnl_GA.cl
View file @
8047908d
...
...
@@ -77,17 +77,7 @@ pipe float8 chan_PRNG2GA_BT_ushort_float_prng __attribute__((xcl_reqd_pipe_dep
pipe
uchar2
chan_PRNG2GA_GG_uchar_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
float
chan_PRNG2GA_GG_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
ushort16
chan_PRNG2GA_LS123_ushort_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
/*
pipe
float
chan_PRNG2GA_LS_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS2_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS3_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS4_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS5_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS6_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS7_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS8_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS9_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
*/
pipe
float
chan_PRNG2LS_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS2_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS3_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
...
...
@@ -99,28 +89,12 @@ pipe float chan_PRNG2LS8_float_prng __attribute__((xcl_reqd_pipe_depth(PI
pipe
float
chan_PRNG2LS9_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
//
Turn-off
signals
to
PRNG
generators
//
FIXME:
these
channels
don
't
go
anymore
through
IGL_Arbiter.
//
That
was
initially
the
case,
but
was
fixed.
//
Name
should
be
changed
accordingly
(
GA
instead
of
Arbiter
)
//
to
avoid
misleading
data-flow
information
//
Resized
to
valid
SDAccel
depths:
16
,
32
,
...
pipe
int
chan_Arbiter_BT_ushort_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_GG_uchar_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_GG_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS123_ushort_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
/*
pipe
int
chan_Arbiter_LS_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS2_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS3_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS4_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS5_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS6_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS7_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS8_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_Arbiter_LS9_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
*/
pipe
int
chan_GA2PRNG_BT_ushort_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_GA2PRNG_GG_uchar_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_GA2PRNG_GG_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_GA2PRNG_LS123_ushort_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_GA2PRNG_LS_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_GA2PRNG_LS2_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
int
chan_GA2PRNG_LS3_float_off
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
...
...
@@ -373,15 +347,15 @@ void Krnl_GA(
*/
__attribute__((xcl_pipeline_loop))
LOOP_FOR_GA_IC_INNER_WRITE_GENOTYPE:
for (uchar
pip
e_cnt=0;
pip
e_cnt<DockConst_num_of_genes;
pip
e_cnt++) {
for (uchar
gen
e_cnt=0;
gen
e_cnt<DockConst_num_of_genes;
gen
e_cnt++) {
float tmp_ic;
#if defined(SINGLE_COPY_POP_ENE)
tmp_ic = GlobPopCurr[pop_cnt*ACTUAL_GENOTYPE_LENGTH +
pip
e_cnt];
tmp_ic = GlobPopCurr[pop_cnt*ACTUAL_GENOTYPE_LENGTH +
gen
e_cnt];
#else
tmp_ic = GlobPopulationCurrent[pop_cnt*ACTUAL_GENOTYPE_LENGTH +
pip
e_cnt];
tmp_ic = GlobPopulationCurrent[pop_cnt*ACTUAL_GENOTYPE_LENGTH +
gen
e_cnt];
#endif
LocalPopCurr[pop_cnt][
pip
e_cnt & MASK_GENOTYPE] = tmp_ic;
LocalPopCurr[pop_cnt][
gen
e_cnt & MASK_GENOTYPE] = tmp_ic;
write_pipe_block(chan_IC2Conf_genotype, &tmp_ic);
}
...
...
@@ -906,10 +880,11 @@ void Krnl_GA(
//
Turn
off
PRNG
kernels
const
int
tmp_int_one
=
1
;
write_pipe_block
(
chan_Arbiter_BT_ushort_float_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_Arbiter_GG_uchar_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_Arbiter_GG_float_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_Arbiter_LS123_ushort_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_GA2PRNG_BT_ushort_float_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_GA2PRNG_GG_uchar_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_GA2PRNG_GG_float_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_GA2PRNG_LS123_ushort_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_GA2PRNG_LS_float_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_GA2PRNG_LS2_float_off,
&tmp_int_one
)
;
write_pipe_block
(
chan_GA2PRNG_LS3_float_off,
&tmp_int_one
)
;
...
...
ofdock_taskpar_xl/device/Krnl_PRNG.cl
View file @
8047908d
...
...
@@ -32,7 +32,7 @@ void Krnl_Prng_BT_ushort_float(
bool
active
=
true
;
*/
int
active
;
valid
=
read_pipe
(
chan_
Arbiter
_BT_ushort_float_off,
&active
)
;
valid
=
read_pipe
(
chan_
GA2PRNG
_BT_ushort_float_off,
&active
)
;
uint
u_tmp[4]
; // used as short in GA
float
f_tmp[4]
;
...
...
@@ -104,7 +104,7 @@ void Krnl_Prng_GG_uchar(
bool
active
=
true
;
*/
int
active
;
valid
=
read_pipe
(
chan_
Arbiter
_GG_uchar_off,
&active
)
;
valid
=
read_pipe
(
chan_
GA2PRNG
_GG_uchar_off,
&active
)
;
uchar
tmp[2]
;
...
...
@@ -158,7 +158,7 @@ void Krnl_Prng_GG_float(
bool
active
=
true
;
*/
int
active
;
valid
=
read_pipe
(
chan_
Arbiter
_GG_float_off,
&active
)
;
valid
=
read_pipe
(
chan_
GA2PRNG
_GG_float_off,
&active
)
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_FOR_PRNG_GG_FLOAT:
...
...
@@ -225,7 +225,7 @@ void Krnl_Prng_LS123_ushort(
bool
active
=
true
;
*/
int
active
;
valid
=
read_pipe
(
chan_
Arbiter
_LS123_ushort_off,
&active
)
;
valid
=
read_pipe
(
chan_
GA2PRNG
_LS123_ushort_off,
&active
)
;
ushort
tmp[9]
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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