Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def dictOfArrays(arrayOfDicts: Sequence[Mapping[KT, VT]]) -> Mapping[KT, List[VT

class TilingHoistingMixIn:

# JUNGVI: This attributes is here to override manually where the tiling informations are stored.
# It is useful for debugging purposes but too nice to expose to the CLI.
tileControlTableMemoryLevel: Optional[str] = None

_DEFAULT_HOIST_PREFIX = "TILING_CODEGEN_"

def __init__(self, memory: str) -> None:
Expand Down Expand Up @@ -60,7 +64,7 @@ def _hoistValues(self,
else:
cb._type = PointerClass(BasicDataTypes.minimalIntegerType(values))
cb._instance = cb._type(cb.name, ctxt)
cb._memoryLevel = self.memory
cb._memoryLevel = self.tileControlTableMemoryLevel or self.memory
return cb

def _hoistReference(self,
Expand Down
10 changes: 10 additions & 0 deletions TargetLibraries/GAP9/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ target_compile_options(deeploygap9 PRIVATE

target_link_libraries(deeploygap9 PUBLIC pmsis)

# Compile the hot forward kernels at -O3 (set last so it wins over the SDK's
# default -Os). Conv / depthwise-conv / Gemm dominate GAP9 inference cycles;
# -O3 turns on the RISC-V (XpulpV2) hardware loops on their tight inner loops.
Comment thread
Victor-Jung marked this conversation as resolved.
set(_KERNEL_O3_FILES
${CMAKE_CURRENT_LIST_DIR}/../PULPOpen/src/Convolution_fp32.c
${CMAKE_CURRENT_LIST_DIR}/../PULPOpen/src/DWConvolution_fp32.c
${CMAKE_CURRENT_LIST_DIR}/../PULPOpen/src/Gemm.c
)
set_source_files_properties(${_KERNEL_O3_FILES} PROPERTIES COMPILE_OPTIONS "-O3")

#RW: Link PULP-NN
#RW: Set PULP-NN version and bitwidth for pulp-nn-mixed
set(PULPNNVERSION XPULPV2)
Expand Down
Loading