--config Debug|Release
-DBUILD_SHARED_LIBS=ON|OFF
-DCMAKE_BUILD_TYPE=Debug|Release
sudo apt install build-essential
sudo apt install gcc-11 g++-11
sudo apt install gcc-12 g++-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
sudo update-alternatives --config gcc
sudo update-alternatives --display gcc
mkdir build
cd build
cmake ..
make -j
make install
mkdir build
cd build
cmake ..
cmake --build . -j
cmake --build . --parallel 8
cmake --install .
# 配置环境
VCPKG_DEFAULT_TRIPLET=x64-windows
# 安装依赖
vcpkg install fltk:x64-windows
vcpkg install faiss:x64-windows
vcpkg install opencv:x64-windows
vcpkg install spdlog:x64-windows
vcpkg install yaml-cpp:x64-windows
vcpkg install cpp-httplib:x64-windows
# 导出依赖
vcpkg export fltk --zip
vcpkg export faiss --zip
vcpkg export opencv --zip
vcpkg export spdlog --zip
vcpkg export yaml-cpp --zip
vcpkg export cpp-httplib --zip
OpenCV
可以直接官网下载faiss[gpu]
支持GPU
计算
mkdir build
cd build
cmake -G "Visual Studio 17 2022" ..
cmake --build . -j
cmake --build . --parallel 8
cmake --install .
cmake -A x64 ..
cmake -G "Visual Studio 17 2022 Win64" ..
- https://hf-mirror.com/datasets
- https://huggingface.co/datasets
- https://github.com/chinese-poetry/chinese-poetry
- https://github.com/chinese-poetry/chinese-poetry-zhCN
一般来说如果租用线上GPU
服务器非常贵,所以建议应用服务放到线上,AI
相关服务本地部署使用frp
/autossh
内网穿透软件为线上应用提供服务。