Skip to content

Commit

Permalink
[update] add llm_skel(Temporary version)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abandon-ht committed Nov 28, 2024
1 parent 234cc58 commit 8ec0be8
Show file tree
Hide file tree
Showing 16 changed files with 9,392 additions and 0 deletions.
Empty file.
47 changes: 47 additions & 0 deletions projects/llm_framework/main_skel/SConstruct
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import os

Import('env')
with open(env['PROJECT_TOOL_S']) as f:
exec(f.read())

SRCS = append_srcs_dir(ADir('src'))
INCLUDE = [ADir('include'), ADir('.')]
PRIVATE_INCLUDE = []
REQUIREMENTS = ['pthread', 'utilities', 'ax_msp', 'eventpp', 'StackFlow', 'ax-samples']

STATIC_LIB = []
DYNAMIC_LIB = []
DEFINITIONS = []
DEFINITIONS_PRIVATE = []
LDFLAGS = []
LINK_SEARCH_PATH = []
STATIC_FILES = []

DEFINITIONS += ['-std=c++17']
LDFLAGS+=['-Wl,-rpath=/opt/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib/gcc-10.3', '-Wl,-rpath=/opt/lib', '-Wl,-rpath=/opt/usr/lib', '-Wl,-rpath=./']
LINK_SEARCH_PATH += [ADir('../static_lib')]
REQUIREMENTS += ['ax_engine', 'ax_interpreter', 'ax_sys']
REQUIREMENTS += ['ax_skel', 'ax_engine', 'ax_venc', 'ax_vdec', 'ax_ivps', 'ax_proton']

INCLUDE += [ADir('../include'), ADir('src/runner'), ADir('../include/opencv4')]

static_file = Glob('../static_lib/module-llm/libabsl_*')
static_file = Glob('../static_lib/libopencv-4.6-aarch64-none/lib/lib*')
STATIC_LIB += static_file * 2



env['COMPONENTS'].append({'target':'llm_skel',
'SRCS':SRCS,
'INCLUDE':INCLUDE,
'PRIVATE_INCLUDE':PRIVATE_INCLUDE,
'REQUIREMENTS':REQUIREMENTS,
'STATIC_LIB':STATIC_LIB,
'DYNAMIC_LIB':DYNAMIC_LIB,
'DEFINITIONS':DEFINITIONS,
'DEFINITIONS_PRIVATE':DEFINITIONS_PRIVATE,
'LDFLAGS':LDFLAGS,
'LINK_SEARCH_PATH':LINK_SEARCH_PATH,
'STATIC_FILES':STATIC_FILES,
'REGISTER':'project'
})
2,285 changes: 2,285 additions & 0 deletions projects/llm_framework/main_skel/src/main.c

Large diffs are not rendered by default.

Loading

0 comments on commit 8ec0be8

Please sign in to comment.