vcpkg/ports/libtorch/vcpkg.json
Alexander Neumann 20584b9d44
[libtorch] update to 2.1.2 (#36246)
* [libtorch] update to 2.1.2

* adjust features and deps

* remove dep

* fix onnx case

* use system fxdiv

* update xnnpack

* fxdiv fix in libtorch

* add newline

* xnnpack does not install configs

* more patching

* fix patch

* more fixes

* use full lib for sleef.

* fix glog symbol on osx

* try fixing msvc ice

* ok renaming did nothing

* v db

* remove comments

* v db

* cuda is only for x64

* v db

* fix usage since cuda is still external to vcpkg

* v db

---------

Co-authored-by: Jim wang (BEYONDSOFT CONSULTING INC) <v-wangjim@microsoft.com>
2024-01-30 14:15:33 -08:00

159 lines
2.9 KiB
JSON

{
"name": "libtorch",
"version": "2.1.2",
"description": "Tensors and Dynamic neural networks in Python with strong GPU acceleration",
"homepage": "https://pytorch.org/",
"license": null,
"supports": "(windows & !static) | osx | linux",
"dependencies": [
"blas",
"cpuinfo",
"eigen3",
"flatbuffers",
{
"name": "flatbuffers",
"host": true
},
"fmt",
"foxi",
"foxi",
"fp16",
"gemmlowp",
"gflags",
"glog",
"lapack",
"lmdb",
"mimalloc",
"onnx",
"onnx-optimizer",
"opencl",
"pocketfft",
"protobuf",
{
"name": "protobuf",
"host": true
},
"pthreadpool",
"sleef",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "vcpkg-get-python-packages",
"host": true
}
],
"default-features": [
{
"name": "cuda",
"platform": "windows & !x86"
},
"fftw3",
"opencv",
"xnnpack",
"zstd"
],
"features": {
"cuda": {
"description": "Build with CUDA GPU backend",
"dependencies": [
"cuda",
"cudnn",
"magma"
]
},
"dist": {
"description": "Use distributed with MPI, Gloo, libuv, TensorPipe",
"dependencies": [
{
"name": "gloo",
"platform": "linux"
},
{
"name": "libtorch",
"default-features": false,
"features": [
"mpi"
],
"platform": "linux"
},
{
"name": "libuv",
"platform": "windows | osx"
},
{
"name": "tensorpipe",
"platform": "linux | osx"
}
]
},
"fftw3": {
"description": "Build with fftw3",
"dependencies": [
"fftw3"
]
},
"leveldb": {
"description": "Build with LevelDB",
"dependencies": [
"leveldb",
"snappy"
]
},
"llvm": {
"description": "Build with LLVM",
"dependencies": [
"llvm"
]
},
"mpi": {
"description": "Build with MPI",
"dependencies": [
"mpi"
]
},
"nnpack": {
"description": "Build with NNPack",
"supports": "linux | osx",
"dependencies": [
"nnpack"
]
},
"opencv": {
"description": "Build with OpenCV 3.x",
"dependencies": [
"opencv"
]
},
"vulkan": {
"description": "Build with Vulkan GPU backend",
"dependencies": [
"vulkan",
"vulkan-loader",
"vulkan-memory-allocator"
]
},
"xnnpack": {
"description": "Build with XNNPack",
"dependencies": [
{
"name": "fxdiv",
"platform": "!windows"
},
"xnnpack"
]
},
"zstd": {
"description": "Build with ZSTD",
"dependencies": [
"zstd"
]
}
}
}