Commit c5372861 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

#22, added rules for swemu and hw debug with xgdb + extensions

parent 96835a43
...@@ -250,6 +250,20 @@ swemu: kerswemu ...@@ -250,6 +250,20 @@ swemu: kerswemu
@echo "====================================================================================" @echo "===================================================================================="
@echo $(newline) @echo $(newline)
# Debug on software using Xilinx GDB
# Analyze hangs with the following gdb extensions:
# xprint queue [<cl_command_queue>]
# xprint event <cl_event>
# xprint mem [<cl_mem>]
# xprint kernel
# xprint all
swemudebug:
xgdb --args \
./$(EXES) \
-ffile input/$(PDB)/derived/$(PDB)_protein.maps.fld \
-lfile input/$(PDB)/derived/$(PDB)_ligand.pdbqt \
-psize $(PSIZE) -nrun $(NRUN) -nev $(NEV) -ngen $(NGEN) -gfpop 1
hwemu: kerhwemu hwemu: kerhwemu
emconfigutil --platform $(BOARD) --nd $(NDEVICES_EMU) emconfigutil --platform $(BOARD) --nd $(NDEVICES_EMU)
...@@ -282,14 +296,6 @@ hw: ...@@ -282,14 +296,6 @@ hw:
@echo $(newline) @echo $(newline)
sw-debug:
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
# Execute on remote server # Execute on remote server
# Host-recompilation # Host-recompilation
# Copy of host to $(TARGET_DIR_HW) # Copy of host to $(TARGET_DIR_HW)
...@@ -315,6 +321,22 @@ eva: exe ...@@ -315,6 +321,22 @@ eva: exe
@echo $(newline) @echo $(newline)
# Debug on hardware using Xilinx GDB
# Analyze hangs with the following gdb extensions:
# xprint queue [<cl_command_queue>]
# xprint event <cl_event>
# xprint mem [<cl_mem>]
# xprint kernel
# xprint all
evadebug:
xgdb --args \
./$(EXES) \
-ffile input/$(PDB)/derived/$(PDB)_protein.maps.fld \
-lfile input/$(PDB)/derived/$(PDB)_ligand.pdbqt \
-resnam docking_debug_$(PDB)_$(NRUN) \
-nrun $(NRUN) -gfpop $(GFPOP)
# Project name # Project name
PROJECT_NAME := ofdock_taskpar_xl PROJECT_NAME := ofdock_taskpar_xl
...@@ -344,6 +366,7 @@ copy: clean-copy ...@@ -344,6 +366,7 @@ copy: clean-copy
cp ./xclbin/$(XCLBINS).hw.*.xo ../$(COPY_DIR)/$(COPY_DIR_DOCK)/xclbin/ cp ./xclbin/$(XCLBINS).hw.*.xo ../$(COPY_DIR)/$(COPY_DIR_DOCK)/xclbin/
cp ./xclbin/$(XCLBINS).hw.*.xclbin ../$(COPY_DIR)/$(COPY_DIR_DOCK)/ cp ./xclbin/$(XCLBINS).hw.*.xclbin ../$(COPY_DIR)/$(COPY_DIR_DOCK)/
mv ../$(COPY_DIR)/$(COPY_DIR_DOCK)/$(XCLBINS).hw.*.xclbin ../$(COPY_DIR)/$(COPY_DIR_DOCK)/$(XCLBINS).xclbin mv ../$(COPY_DIR)/$(COPY_DIR_DOCK)/$(XCLBINS).hw.*.xclbin ../$(COPY_DIR)/$(COPY_DIR_DOCK)/$(XCLBINS).xclbin
cp sdaccel.ini ../$(COPY_DIR)/$(COPY_DIR_DOCK)/
cp Makefile ../$(COPY_DIR)/$(COPY_DIR_DOCK)/ cp Makefile ../$(COPY_DIR)/$(COPY_DIR_DOCK)/
cp defines.h ../$(COPY_DIR)/$(COPY_DIR_DOCK)/ cp defines.h ../$(COPY_DIR)/$(COPY_DIR_DOCK)/
cp defines_fixedpt.h ../$(COPY_DIR)/$(COPY_DIR_DOCK)/ cp defines_fixedpt.h ../$(COPY_DIR)/$(COPY_DIR_DOCK)/
......
[Debug] [Debug]
timeline_trace = true timeline_trace = true
device_profile = true device_profile = true
app_debug=true app_debu = true
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