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
799f9ae3
Commit
799f9ae3
authored
Jun 15, 2018
by
Leonardo Solis
Browse files
improved Makefile + added README.md
Former-commit-id:
4827f531
parent
61379159
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
0 → 100644
View file @
799f9ae3
# Set SDAccel up
```
zsh
source
/opt/cad/xilinx/sdx/SDx/2017.4/settings64.sh
```
# Important commands
*
See basic rules under
[
Makefile
](
./ofdock_taskpar_xl/Makefile
)
*
See user compilation flags under
[
boards.mk
](
./common_xilinx/utility/boards.mk
)
*
See OpenCL ICD options under
[
boards.mk
](
./common_xilinx/libs/opencl/opencl.mk
)
## Software emulation
```
zsh
make swemu
```
## FPGA building
```
zsh
make hw
```
ofdock_taskpar_xl/Makefile
View file @
799f9ae3
...
...
@@ -85,18 +85,52 @@ CHECKS=check
include
$(COMMON_REPO)/utility/rules.mk
# Docking parameters
# that directly determine the execution time
# Following values are used only for emulation
# to have a short but still a representative test
PDB
:=
1stp
NRUN
:=
5
NEV
:=
100000
kerswemu
:
make
TARGETS
=
sw_emu all
cp
./xclbin/
$(XCLBINS)
.sw_emu.
*
.xclbin .
mv
./
$(XCLBINS)
.sw_emu.
*
.xclbin ./
$(XCLBINS)
.xclbin
@
echo
" "
@
echo
"========================================================================"
@
echo
"INFO: emulation file created under: ./xclbin/
$(XCLBINS)
.sw_emu.*.xclbin "
@
echo
"INFO: ... was copied and renamed as ./
$(XCLBINS)
.xclbin "
@
echo
"========================================================================"
@
echo
" "
kerhwemu
:
make
TARGETS
=
hw_emu all
# Automate test
# Run emulation
# Compilation (host & device) if not done previously
# The .dlg file is written in ./
# "exe" and "xclbin" are rules from "rules.mk"
# Don't forget to copy and rename ./xclbin/*.xclbin file into ./Krnl_GA.xclbin
emu
:
XCL_EMULATION_MODE
=
sw_emu ./hostbin
-ffile
input/1stp/derived/1stp_protein.maps.fld
-lfile
input/1stp/derived/1stp_ligand.pdbqt
-nrun
2
-nev
2500000
swemu
:
kerswemu
XCL_EMULATION_MODE
=
sw_emu ./
$(EXES)
-ffile
input/
$(PDB)
/derived/
$(PDB)
_protein.maps.fld
-lfile
input/
$(PDB)
/derived/
$(PDB)
_ligand.pdbqt
-nev
$(NEV)
-nrun
$(NRUN)
-gfpop
1
@
echo
" "
@
echo
"======================================="
@
echo
"INFO: log file is under: ./docking.dlg "
@
echo
"======================================="
@
echo
" "
# Build hw (FPGA bitstream)
# NOT integrated yet in a multistep compilation
hw
:
make
TARGETS
=
hw all
@
echo
" "
@
echo
"=========================================================================="
@
echo
"INFO: FPGA bitstream is under:
$(TARGET_DIR_HW)
/
$(KRNL_NAME)
(.aoco)(.aocx)"
@
echo
"=========================================================================="
@
echo
" "
debug
:
XCL_EMULATION_MODE
=
sw_emu xgdb
-args
./
hostbin
-ffile
input/1stp/derived/1stp_protein.maps.fld
-lfile
input/1stp/derived/1stp_ligand.pdbqt
-nrun
1
-nev
100
-lsit
10
-psize
10
XCL_EMULATION_MODE
=
sw_emu xgdb
-args
./
$(EXES)
-ffile
input/1stp/derived/1stp_protein.maps.fld
-lfile
input/1stp/derived/1stp_ligand.pdbqt
-nrun
1
-nev
100
-lsit
10
-psize
10
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