Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@echo off
 
rem build_webgpu.bat --- build onnxruntime-web with WebGPU EP
rem
rem Usage:
rem   build_webgpu.bat  config  [clean]
rem
rem Options:
rem   config      Build configuration, "d" or "r"
rem   clean       Perform a clean build, "clean" or empty
 
setlocal enabledelayedexpansion
 
set ROOT=%~dp0..\
set BUILD_DIR=%ROOT%build_webgpu
 
:arg1
if ["%~1"]==["d"] (
    set CONFIG=Debug
    set CONFIG_EXTRA_FLAG=
    @rem --enable_wasm_profiling --wasm_run_tests_in_browser
    @rem --cmake_extra_defines onnxruntime_ENABLE_WEBASSEMBLY_OUTPUT_OPTIMIZED_MODEL=1
    @rem --enable_wasm_debug_info
    goto :arg2
)
if ["%~1"]==["r"] (
    set CONFIG=Release
    set CONFIG_EXTRA_FLAG=
    @rem --enable_wasm_api_exception_catching --disable_rtti
    goto :arg2
)
echo Invalid configuration "%~1", must be "d"(Debug) or "r"(Release)
exit /b 1
 
:arg2
if ["%~2"]==["clean"] (
    goto :clean
)
if not exist "%ROOT%js\web\dist" (
    goto :npm_ci
)
 
goto :build_wasm
 
:clean
if exist "%BUILD_DIR%" (
    rd /s /q %BUILD_DIR%
)
 
pushd %ROOT%
git submodule sync --recursive
git submodule update --init --recursive
popd
 
:npm_ci
pushd %ROOT%js
call npm ci
popd
pushd %ROOT%js\common
call npm ci
popd
pushd %ROOT%js\web
call npm ci
call npm run pull:wasm
popd
 
:build_wasm
 
set PATH=C:\Program Files\Git\usr\bin;%PATH%
 
call %ROOT%build.bat^
 --config %CONFIG%^
 %CONFIG_EXTRA_FLAG%^
 --parallel^
 --skip_submodule_sync^
 --build_wasm^
 --target onnxruntime_webassembly^
 --skip_tests^
 --enable_wasm_simd^
 --enable_wasm_threads^
 --use_webnn^
 --use_webgpu^
 --enable_wasm_jspi^
 --build_dir %BUILD_DIR%^
 --include_ops_by_config %ROOT%onnxruntime\wasm\reduced_types.config^
 --enable_reduced_operator_type_support
 
IF NOT "%ERRORLEVEL%" == "0" (
  exit /b %ERRORLEVEL%
)
 
copy /Y %BUILD_DIR%\%CONFIG%\ort-wasm-simd-threaded.jspi.wasm %ROOT%js\web\dist\
copy /Y %BUILD_DIR%\%CONFIG%\ort-wasm-simd-threaded.jspi.mjs %ROOT%js\web\dist\