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
8d4b5135
Commit
8d4b5135
authored
May 22, 2018
by
lvs
Browse files
sfixed so it starts sw_emu
parent
f98edc3e
Changes
11
Hide whitespace changes
Inline
Side-by-side
common_xilinx/utility/boards.mk
View file @
8d4b5135
...
...
@@ -7,10 +7,162 @@ PROFILE ?= no
# Default C++ Compiler Flags and xocc compiler flags
CXXFLAGS
:=
-Wall
-O0
-g
-std
=
c++14
# =============================
# Reproduce result (remove randomness)
# =============================
REPRO
=
NO
ifeq
($(REPRO), YES)
REP
=
-DREPRO
else
REP
=
endif
ENABLE_KERNELS
=
$(K1)
$(K2)
$(K3)
$(K4)
$(K5)
$(K6)
$(K7)
$(K8)
$(K9)
$(K10)
\
$(K11)
$(K12)
$(K13)
$(K14)
$(K15)
$(K16)
$(K17)
$(K18)
$(K19)
$(K20)
\
$(K21)
$(K22)
$(K23)
$(K24)
$(K25)
$(K26)
$(K27)
$(K28)
$(K29)
$(K30)
\
$(K31)
$(K32)
$(K33)
$(K34)
$(K35)
$(K36)
$(K37)
$(K38)
$(K39)
$(K40)
\
$(K41)
$(K42)
$(K43)
$(K44)
$(K45)
$(K46)
$(K47)
$(K48)
# =============================
# Fixed-point
# =============================
# FIxed-POint COform flag (FIPOCO)
FIXED_POINT_CONFORM
=
YES
#FIXED_POINT_CONFORM=NO
FIXED_POINT_INTERE
=
NO
FIXED_POINT_INTRAE
=
NO
FIXED_POINT_LS1
=
YES
FIXED_POINT_LS2
=
YES
FIXED_POINT_LS3
=
YES
FIXED_POINT_LS4
=
YES
FIXED_POINT_LS5
=
YES
FIXED_POINT_LS6
=
YES
FIXED_POINT_LS7
=
YES
FIXED_POINT_LS8
=
YES
FIXED_POINT_LS9
=
YES
#FIXED_POINT_LS1=NO
#FIXED_POINT_LS2=NO
#FIXED_POINT_LS3=NO
#FIXED_POINT_LS4=NO
#FIXED_POINT_LS5=NO
#FIXED_POINT_LS6=NO
#FIXED_POINT_LS7=NO
#FIXED_POINT_LS8=NO
#FIXED_POINT_LS9=NO
SINGLE_COPY_POP_ENE
=
YES
SEPARATE_FGRID_INTERE
=
NO
ifeq
($(FIXED_POINT_CONFORM), YES)
FIPOCO_FLAG
=
-DFIXED_POINT_CONFORM
else
FIPOCO_FLAG
=
endif
ifeq
($(FIXED_POINT_INTERE), YES)
FIPOIE_FLAG
=
-DFIXED_POINT_INTERE
else
FIPOIE_FLAG
=
endif
ifeq
($(FIXED_POINT_INTRAE), YES)
FIPOIA_FLAG
=
-DFIXED_POINT_INTRAE
else
FIPOIA_FLAG
=
endif
ifeq
($(FIXED_POINT_LS1), YES)
FIPOLS1_FLAG
=
-DFIXED_POINT_LS1
else
FIPOLS1_FLAG
=
endif
ifeq
($(FIXED_POINT_LS2), YES)
FIPOLS2_FLAG
=
-DFIXED_POINT_LS2
else
FIPOLS2_FLAG
=
endif
ifeq
($(FIXED_POINT_LS3), YES)
FIPOLS3_FLAG
=
-DFIXED_POINT_LS3
else
FIPOLS3_FLAG
=
endif
ifeq
($(FIXED_POINT_LS4), YES)
FIPOLS4_FLAG
=
-DFIXED_POINT_LS4
else
FIPOLS4_FLAG
=
endif
ifeq
($(FIXED_POINT_LS5), YES)
FIPOLS5_FLAG
=
-DFIXED_POINT_LS5
else
FIPOLS5_FLAG
=
endif
ifeq
($(FIXED_POINT_LS6), YES)
FIPOLS6_FLAG
=
-DFIXED_POINT_LS6
else
FIPOLS6_FLAG
=
endif
ifeq
($(FIXED_POINT_LS7), YES)
FIPOLS7_FLAG
=
-DFIXED_POINT_LS7
else
FIPOLS7_FLAG
=
endif
ifeq
($(FIXED_POINT_LS8), YES)
FIPOLS8_FLAG
=
-DFIXED_POINT_LS8
else
FIPOLS8_FLAG
=
endif
ifeq
($(FIXED_POINT_LS9), YES)
FIPOLS9_FLAG
=
-DFIXED_POINT_LS9
else
FIPOLS9_FLAG
=
endif
ifeq
($(SINGLE_COPY_POP_ENE), YES)
COPYPOPENE_FLAG
=
-DSINGLE_COPY_POP_ENE
else
COPYPOPENE_FLAG
=
endif
ifeq
($(SEPARATE_FGRID_INTERE), YES)
SEP_FGRID_FLAG
=
-DSEPARATE_FGRID_INTERE
else
SEP_FGRID_FLAG
=
endif
FIPO_FLAG
=
$(FIPOCO_FLAG)
\
$(FIPOIE_FLAG)
\
$(FIPOIA_FLAG)
\
$(FIPOLS1_FLAG)
\
$(FIPOLS2_FLAG)
\
$(FIPOLS3_FLAG)
\
$(FIPOLS4_FLAG)
\
$(FIPOLS5_FLAG)
\
$(FIPOLS6_FLAG)
\
$(FIPOLS7_FLAG)
\
$(FIPOLS8_FLAG)
\
$(FIPOLS9_FLAG)
\
$(COPYPOPENE_FLAG)
$(SEP_FGRID_FLAG)
#https://www.xilinx.com/html_docs/xilinx2018_1/sdsoc_doc/nts1517252127891.html
#CLFLAGS:= --xp "param:compiler.preserveHlsOutput=1" --xp "param:compiler.generateExtraRunData=true" -s
#CLFLAGS:= --xp "param:compiler.version=31" --xp "param:compiler.preserveHlsOutput=1" --xp "param:compiler.generateExtraRunData=true" -s
CLFLAGS
:=
--xp
"param:compiler.version=31"
--xp
"param:compiler.preserveHlsOutput=1"
--xp
"param:compiler.generateExtraRunData=true"
-s
-I
./
-I
../
-I
./device
#CLFLAGS:= --xp "param:compiler.version=31" --xp "param:compiler.preserveHlsOutput=1" --xp "param:compiler.generateExtraRunData=true" -s -I./ -I../ -I./device
CLFLAGS
:=
--xp
"param:compiler.version=31"
--xp
"param:compiler.preserveHlsOutput=1"
--xp
"param:compiler.generateExtraRunData=true"
-s
-I
./
-I
../
-I
./device
$(REP)
$(FIPO_FLAG)
ifneq
($(REPORT),none)
...
...
ofdock_taskpar_xl/Makefile
View file @
8d4b5135
...
...
@@ -542,7 +542,8 @@ else
endif
FIPO_FLAG
=
$(FIPOCO_FLAG)
\
$(FIPOIE_FLAG)
$(FIPOIA_FLAG)
\
$(FIPOIE_FLAG)
\
$(FIPOIA_FLAG)
\
$(FIPOLS1_FLAG)
\
$(FIPOLS2_FLAG)
\
$(FIPOLS3_FLAG)
\
...
...
@@ -632,5 +633,5 @@ include $(COMMON_REPO)/utility/rules.mk
# Automate test
# "exe" and "xclbin" are rules from "rules.mk"
emu
:
XCL_EMULATION_MODE
=
sw_emu ./hostbin
-ffile
input/1stp/derived/1stp_protein.maps.fld
-lfile
input/1stp/derived/1stp_ligand.pdbqt
XCL_EMULATION_MODE
=
sw_emu ./hostbin
-ffile
input/1stp/derived/1stp_protein.maps.fld
-lfile
input/1stp/derived/1stp_ligand.pdbqt
-nrun
1
-nev
100
-lsit
10
ofdock_taskpar_xl/device/Krnl_LS.cl
View file @
8d4b5135
...
...
@@ -200,7 +200,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS1_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS1_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS1_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -366,7 +367,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS1_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS1_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS1_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS1_genotype,
genotype
[i]
)
;
...
...
ofdock_taskpar_xl/device/Krnl_LS2.cl
View file @
8d4b5135
...
...
@@ -203,7 +203,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS2_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS2_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS2_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -373,7 +374,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS2_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS2_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS2_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS2_genotype,
genotype
[i]
)
;
...
...
ofdock_taskpar_xl/device/Krnl_LS3.cl
View file @
8d4b5135
...
...
@@ -204,7 +204,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS3_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS3_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS3_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -374,7 +375,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS3_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS3_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS3_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS3_genotype,
genotype
[i]
)
;
...
...
ofdock_taskpar_xl/device/Krnl_LS4.cl
View file @
8d4b5135
...
...
@@ -204,7 +204,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS4_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS4_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS4_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -371,7 +372,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS4_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS4_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS4_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS4_genotype,
genotype
[i]
)
;
...
...
ofdock_taskpar_xl/device/Krnl_LS5.cl
View file @
8d4b5135
...
...
@@ -205,7 +205,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS5_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS5_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS5_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -375,7 +376,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS5_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS5_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS5_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS5_genotype,
genotype
[i]
)
;
...
...
ofdock_taskpar_xl/device/Krnl_LS6.cl
View file @
8d4b5135
...
...
@@ -203,7 +203,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS6_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS6_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS6_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -373,7 +374,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS6_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS6_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS6_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS6_genotype,
genotype
[i]
)
;
...
...
ofdock_taskpar_xl/device/Krnl_LS7.cl
View file @
8d4b5135
...
...
@@ -204,7 +204,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS7_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS7_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS7_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -374,7 +375,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS7_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS7_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS7_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS7_genotype,
genotype
[i]
)
;
...
...
ofdock_taskpar_xl/device/Krnl_LS8.cl
View file @
8d4b5135
...
...
@@ -203,7 +203,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS8_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS8_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS8_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -373,7 +374,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS8_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS8_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS8_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS8_genotype,
genotype
[i]
)
;
...
...
ofdock_taskpar_xl/device/Krnl_LS9.cl
View file @
8d4b5135
...
...
@@ -204,7 +204,8 @@ while(valid) {
/*
write_channel_altera(chan_LS2Conf_LS9_genotype, fixedpt_tofloat(fixpt_tmp3));
*/
write_pipe_block(chan_LS2Conf_LS9_genotype, &fixedpt_tofloat(fixpt_tmp3));
float tmp_float = fixedpt_tofloat(fixpt_tmp3);
write_pipe_block(chan_LS2Conf_LS9_genotype, &tmp_float);
#else
// tmp1 is genotype_deviate
...
...
@@ -374,7 +375,8 @@ while(valid) {
/*
write_channel_altera
(
chan_LS2GA_LS9_genotype,
fixedpt_tofloat
(
genotype
[i]
))
;
*/
write_pipe_block
(
chan_LS2GA_LS9_genotype,
&fixedpt_tofloat
(
genotype
[i]
))
;
float
tmp_float
=
fixedpt_tofloat
(
genotype
[i]
)
;
write_pipe_block
(
chan_LS2GA_LS9_genotype,
&tmp_float
)
;
#
else
/*
write_channel_altera
(
chan_LS2GA_LS9_genotype,
genotype
[i]
)
;
...
...
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