fix libtorch on windows (#3187)

pull/3188/head
Hoildkv 12 months ago committed by GitHub
parent e269b9519b
commit 6a92031e49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/l/libtorch/xmake.lua

@ -25,7 +25,8 @@ package("libtorch")
add_configs("python", {description = "Build python interface.", default = false, type = "boolean"})
add_configs("openmp", {description = "Use OpenMP for parallel code.", default = true, type = "boolean"})
add_configs("cuda", {description = "Enable CUDA support.", default = false, type = "boolean"})
add_configs("ninja", {description = "Use ninja as build tool.", default = false, type = "boolean"})
-- https://github.com/pytorch/pytorch/issues/24186 only ninja is supported on windows
add_configs("ninja", {description = "Use ninja as build tool.", default = is_plat("windows"), type = "boolean"})
add_configs("blas", {description = "Set BLAS vendor.", default = "openblas", type = "string", values = {"mkl", "openblas", "eigen"}})
add_configs("pybind11", {description = "Use pybind11 from xrepo.", default = false, type = "boolean"})
add_configs("protobuf-cpp", {description = "Use protobuf from xrepo.", default = false, type = "boolean"})

Loading…
Cancel
Save