File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ cmake -S electron\native\ctranslate2-server -B .cache\ctranslate2-build\build-cp
55if errorlevel 1 exit /b %errorlevel%
66cmake --build .cache\ctranslate2-build\build-cpu --config Release
77if errorlevel 1 exit /b %errorlevel%
8- copy /Y .cache\ctranslate2-build\build-cpu\ctranslate2-server.exe electron\native\bin\win32-x64\ctranslate2-server-cpu.exe
8+ copy /Y .cache\ctranslate2-build\build-cpu\ctranslate2-server.exe electron\native\bin\win32-x64\ctranslate2-server-ctranslate2- cpu.exe
99echo Build complete.
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ VARIANTS=()
3232while [[ $# -gt 0 ]]; do
3333 case " $1 " in
3434 --cpu-only) CPU_ONLY=1; shift ;;
35- --cuda) VARIANTS+=(" cuda" ); shift ;;
36- --cpu) VARIANTS+=(" cpu" ); shift ;;
35+ --cuda) VARIANTS+=(" ctranslate2- cuda" ); shift ;;
36+ --cpu) VARIANTS+=(" ctranslate2- cpu" ); shift ;;
3737 -h|--help)
3838 cat << -EOF
3939 Usage: $0 [--cpu-only | --cuda --cpu]
5050
5151if [[ " ${# VARIANTS[@]} " -eq 0 && " ${CPU_ONLY} " -eq 0 ]]; then
5252 case " $( uname -s) :$( uname -m) " in
53- Darwin:arm64|Darwin:x86_64) VARIANTS+=(cpu) ;;
53+ Darwin:arm64|Darwin:x86_64) VARIANTS+=(ctranslate2- cpu) ;;
5454 Linux:x86_64|Linux:aarch64)
55- if command -v nvcc > /dev/null 2>&1 ; then VARIANTS+=(cuda); fi
56- VARIANTS+=(cpu)
55+ if command -v nvcc > /dev/null 2>&1 ; then VARIANTS+=(ctranslate2- cuda); fi
56+ VARIANTS+=(ctranslate2- cpu)
5757 ;;
5858 MINGW* |CYGWIN* |MSYS* )
5959 # CUDA on Windows only ships when self-hosted GPU runners exist; the
6060 # workflow gates this on `ENABLE_CUDA`.
61- VARIANTS+=(cpu)
61+ VARIANTS+=(ctranslate2- cpu)
6262 ;;
63- * ) VARIANTS+=(cpu) ;;
63+ * ) VARIANTS+=(ctranslate2- cpu) ;;
6464 esac
6565fi
6666
6767if [[ " ${CPU_ONLY} " -eq 1 ]]; then
68- VARIANTS=(cpu)
68+ VARIANTS=(ctranslate2- cpu)
6969fi
7070
7171echo " Variants to build: ${VARIANTS[*]:- none} "
You can’t perform that action at this time.
0 commit comments