From a2bdfdb6a27e42c09e714547c8c99ddc82c965d0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Jul 2025 12:15:58 +0200 Subject: [PATCH 01/41] test initial attempt libtorch upgrade --- Directory.Build.props | 4 +- Directory.Build.targets | 4 +- build/BranchInfo.props | 4 +- build/Dependencies.props | 6 +- src/Native/LibTorchSharp/THSLinearAlgebra.cpp | 66 +++++++++---------- ...1-abi-shared-with-deps-2.7.1%2Bcpu.zip.sha | 1 + .../libtorch-macos-arm64-2.7.1.zip.sha | 1 + ...h-win-shared-with-deps-2.7.1%2Bcpu.zip.sha | 1 + ...shared-with-deps-debug-2.7.1%2Bcpu.zip.sha | 1 + .../libtorch-cuda-12.8.proj} | 20 +++--- ...abi-shared-with-deps-2.2.0%2Bcu121.zip.sha | 0 ...abi-shared-with-deps-2.2.1%2Bcu121.zip.sha | 0 ...abi-shared-with-deps-2.4.0%2Bcu121.zip.sha | 0 ...abi-shared-with-deps-2.5.1%2Bcu121.zip.sha | 0 ...abi-shared-with-deps-2.7.1%2Bcu128.zip.sha | 1 + ...ch-shared-with-deps-1.11.0%2Bcu113.zip.sha | 0 ...ch-shared-with-deps-1.12.0%2Bcu113.zip.sha | 0 ...ch-shared-with-deps-1.13.0%2Bcu117.zip.sha | 0 ...rch-shared-with-deps-2.0.1%2Bcu117.zip.sha | 0 ...rch-shared-with-deps-2.1.0%2Bcu121.zip.sha | 0 ...rch-shared-with-deps-2.2.0%2Bcu121.zip.sha | 0 ...in-shared-with-deps-1.11.0%2Bcu113.zip.sha | 0 ...in-shared-with-deps-1.12.0%2Bcu113.zip.sha | 0 ...in-shared-with-deps-1.13.0%2Bcu117.zip.sha | 0 ...win-shared-with-deps-2.0.1%2Bcu117.zip.sha | 0 ...win-shared-with-deps-2.1.0%2Bcu121.zip.sha | 0 ...win-shared-with-deps-2.2.0%2Bcu121.zip.sha | 0 ...win-shared-with-deps-2.2.1%2Bcu121.zip.sha | 0 ...win-shared-with-deps-2.4.0%2Bcu121.zip.sha | 0 ...win-shared-with-deps-2.5.1%2Bcu121.zip.sha | 0 ...win-shared-with-deps-2.7.1%2Bcu128.zip.sha | 1 + ...red-with-deps-debug-1.11.0%2Bcu113.zip.sha | 0 ...red-with-deps-debug-1.12.0%2Bcu113.zip.sha | 0 ...red-with-deps-debug-1.13.0%2Bcu117.zip.sha | 0 ...ared-with-deps-debug-2.0.1%2Bcu117.zip.sha | 0 ...ared-with-deps-debug-2.1.0%2Bcu121.zip.sha | 0 ...ared-with-deps-debug-2.2.0%2Bcu121.zip.sha | 0 ...ared-with-deps-debug-2.2.1%2Bcu121.zip.sha | 0 ...ared-with-deps-debug-2.4.0%2Bcu121.zip.sha | 0 ...ared-with-deps-debug-2.5.1%2Bcu121.zip.sha | 0 ...ared-with-deps-debug-2.7.1%2Bcu128.zip.sha | 1 + src/TorchSharp/Torch.cs | 8 +-- 42 files changed, 65 insertions(+), 54 deletions(-) create mode 100644 src/Redist/libtorch-cpu/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcpu.zip.sha create mode 100644 src/Redist/libtorch-cpu/libtorch-macos-arm64-2.7.1.zip.sha create mode 100644 src/Redist/libtorch-cpu/libtorch-win-shared-with-deps-2.7.1%2Bcpu.zip.sha create mode 100644 src/Redist/libtorch-cpu/libtorch-win-shared-with-deps-debug-2.7.1%2Bcpu.zip.sha rename src/Redist/{libtorch-cuda-12.1/libtorch-cuda-12.1.proj => libtorch-cuda-12.8/libtorch-cuda-12.8.proj} (96%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-cxx11-abi-shared-with-deps-2.2.1%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-cxx11-abi-shared-with-deps-2.4.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu121.zip.sha (100%) create mode 100644 src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcu128.zip.sha rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-shared-with-deps-1.11.0%2Bcu113.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-shared-with-deps-1.12.0%2Bcu113.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-shared-with-deps-1.13.0%2Bcu117.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-shared-with-deps-2.0.1%2Bcu117.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-shared-with-deps-2.1.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-shared-with-deps-2.2.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-1.11.0%2Bcu113.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-1.12.0%2Bcu113.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-1.13.0%2Bcu117.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-2.0.1%2Bcu117.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-2.1.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-2.2.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-2.2.1%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-2.4.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-2.5.1%2Bcu121.zip.sha (100%) create mode 100644 src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.7.1%2Bcu128.zip.sha rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-1.11.0%2Bcu113.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-1.12.0%2Bcu113.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-1.13.0%2Bcu117.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-2.0.1%2Bcu117.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-2.1.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-2.2.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-2.2.1%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-2.4.0%2Bcu121.zip.sha (100%) rename src/Redist/{libtorch-cuda-12.1 => libtorch-cuda-12.8}/libtorch-win-shared-with-deps-debug-2.5.1%2Bcu121.zip.sha (100%) create mode 100644 src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.7.1%2Bcu128.zip.sha diff --git a/Directory.Build.props b/Directory.Build.props index 256170d0a..ff94123a3 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -20,7 +20,7 @@ $(RepoRoot)src/ $(RepoRoot)pkg/ - 2.5.1.0 + 2.7.1.0 2.2.2.0 @@ -86,7 +86,7 @@ - 2.5.1.0 + 2.7.1.0 2.2.2.0 false $(LibTorchPackageVersion) diff --git a/Directory.Build.targets b/Directory.Build.targets index 343c4cb2d..00995f412 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -39,7 +39,7 @@ - + @@ -49,7 +49,7 @@ - + diff --git a/build/BranchInfo.props b/build/BranchInfo.props index 04ac4215b..634838da2 100644 --- a/build/BranchInfo.props +++ b/build/BranchInfo.props @@ -2,7 +2,7 @@ 0 105 - 1 - 0.105.0 + 2 + 0.105.1 \ No newline at end of file diff --git a/build/Dependencies.props b/build/Dependencies.props index 320a3ae05..6d3d32065 100644 --- a/build/Dependencies.props +++ b/build/Dependencies.props @@ -7,10 +7,10 @@ - 2.5.1 + 2.7.1 2.2.2 - 12.1 - 121 + 12.8 + 128 2019.0.5.20190502 diff --git a/src/Native/LibTorchSharp/THSLinearAlgebra.cpp b/src/Native/LibTorchSharp/THSLinearAlgebra.cpp index 4ed6419db..202d3de47 100644 --- a/src/Native/LibTorchSharp/THSLinearAlgebra.cpp +++ b/src/Native/LibTorchSharp/THSLinearAlgebra.cpp @@ -6,7 +6,7 @@ Tensor THSLinalg_cholesky(const Tensor tensor) { - CATCH_TENSOR(torch::linalg::cholesky(*tensor)) + CATCH_TENSOR(torch::linalg_cholesky(*tensor)) } Tensor THSLinalg_cholesky_ex(const Tensor tensor, bool check_errors, Tensor* info) @@ -44,7 +44,7 @@ Tensor THSLinalg_cross(const Tensor input, const Tensor other, const int64_t dim Tensor THSLinalg_det(const Tensor tensor) { - CATCH_TENSOR(torch::linalg::det(*tensor)) + CATCH_TENSOR(torch::linalg_det(*tensor)) } Tensor THSTensor_logdet(const Tensor tensor) @@ -55,7 +55,7 @@ Tensor THSTensor_logdet(const Tensor tensor) Tensor THSLinalg_slogdet(const Tensor tensor, Tensor* logabsdet) { std::tuple res; - CATCH(res = torch::linalg::slogdet(*tensor);) + CATCH(res = torch::linalg_slogdet(*tensor);) *logabsdet = ResultTensor(std::get<1>(res)); return ResultTensor(std::get<0>(res)); } @@ -63,7 +63,7 @@ Tensor THSLinalg_slogdet(const Tensor tensor, Tensor* logabsdet) Tensor THSLinalg_eig(const Tensor tensor, Tensor* eigenvectors) { std::tuple res; - CATCH(res = torch::linalg::eig(*tensor);); + CATCH(res = torch::linalg_eig(*tensor);); *eigenvectors = ResultTensor(std::get<1>(res)); return ResultTensor(std::get<0>(res)); } @@ -93,31 +93,31 @@ Tensor THSLinalg_eigh(const Tensor tensor, const char UPLO, Tensor* eigenvectors std::string _uplo; _uplo.push_back(UPLO); std::tuple res; - CATCH(res = torch::linalg::eigh(*tensor, _uplo);); + CATCH(res = torch::linalg_eigh(*tensor, _uplo);); *eigenvectors = ResultTensor(std::get<1>(res)); return ResultTensor(std::get<0>(res)); } Tensor THSLinalg_eigvals(const Tensor tensor) { - CATCH_TENSOR(torch::linalg::eigvals(*tensor)) + CATCH_TENSOR(torch::linalg_eigvals(*tensor)) } Tensor THSLinalg_eigvalsh(const Tensor tensor, const char UPLO) { std::string _uplo; _uplo.push_back(UPLO); - CATCH_TENSOR(torch::linalg::eigvalsh(*tensor, _uplo)) + CATCH_TENSOR(torch::linalg_eigvalsh(*tensor, _uplo)) } Tensor THSLinalg_householder_product(const Tensor tensor, const Tensor tau) { - CATCH_TENSOR(torch::linalg::householder_product(*tensor, *tau)) + CATCH_TENSOR(torch::linalg_householder_product(*tensor, *tau)) } Tensor THSLinalg_inv(const Tensor tensor) { - CATCH_TENSOR(torch::linalg::inv(*tensor)) + CATCH_TENSOR(torch::linalg_inv(*tensor)) } Tensor THSLinalg_inv_ex(const Tensor tensor, bool check_errors, Tensor* info) @@ -131,7 +131,7 @@ Tensor THSLinalg_inv_ex(const Tensor tensor, bool check_errors, Tensor* info) Tensor THSLinalg_lstsq_none(const Tensor A, const Tensor B, Tensor* residuals, Tensor* rank, Tensor* singular_values) { std::tuple res; - CATCH(res = torch::linalg::lstsq(*A, *B, c10::nullopt, c10::nullopt);) + CATCH(res = torch::linalg_lstsq(*A, *B, c10::nullopt, c10::nullopt);) *residuals = ResultTensor(std::get<1>(res)); *rank = ResultTensor(std::get<2>(res)); *singular_values = ResultTensor(std::get<3>(res)); @@ -141,7 +141,7 @@ Tensor THSLinalg_lstsq_none(const Tensor A, const Tensor B, Tensor* residuals, T Tensor THSLinalg_lstsq_rcond(const Tensor A, const Tensor B, const double rcond, Tensor* residuals, Tensor* rank, Tensor* singular_values) { std::tuple res; - CATCH(res = torch::linalg::lstsq(*A, *B, rcond, c10::nullopt);) + CATCH(res = torch::linalg_lstsq(*A, *B, rcond, c10::nullopt);) *residuals = ResultTensor(std::get<1>(res)); *rank = ResultTensor(std::get<2>(res)); *singular_values = ResultTensor(std::get<3>(res)); @@ -151,7 +151,7 @@ Tensor THSLinalg_lstsq_rcond(const Tensor A, const Tensor B, const double rcond, Tensor THSLinalg_lu(const Tensor A, const bool pivot, Tensor* L, Tensor* U) { std::tuple res; - CATCH(res = torch::linalg::lu(*A, pivot);) + CATCH(res = torch::linalg_lu(*A, pivot);) *L = ResultTensor(std::get<1>(res)); *U = ResultTensor(std::get<2>(res)); return ResultTensor(std::get<0>(res)); @@ -160,7 +160,7 @@ Tensor THSLinalg_lu(const Tensor A, const bool pivot, Tensor* L, Tensor* U) Tensor THSLinalg_lu_factor(const Tensor A, const bool pivot, Tensor* pivots) { std::tuple res; - CATCH(res = torch::linalg::lu_factor(*A, pivot);) + CATCH(res = torch::linalg_lu_factor(*A, pivot);) *pivots = ResultTensor(std::get<1>(res)); return ResultTensor(std::get<0>(res)); } @@ -190,19 +190,19 @@ Tensor THSLinalg_ldl_solve(const Tensor LD, const Tensor pivots, const Tensor B, Tensor THSLinalg_matrix_norm(const Tensor tensor, const Scalar ord, const int64_t* dim, const int dim_length, const bool keepdim) { auto dims = c10::ArrayRef(dim, dim_length); - CATCH_TENSOR(torch::linalg::matrix_norm(*tensor, *ord, dims, keepdim, c10::nullopt)) + CATCH_TENSOR(torch::linalg_matrix_norm(*tensor, *ord, dims, keepdim, c10::nullopt)) } Tensor THSLinalg_matrix_norm_fronuc(const Tensor tensor, const int8_t fronuc, const int64_t* dim, const int dim_length, const bool keepdim) { auto dims = c10::ArrayRef(dim, dim_length); - CATCH_TENSOR(torch::linalg::matrix_norm(*tensor, (fronuc == 0) ? "fro" : "nuc", dims, keepdim, c10::nullopt)) + CATCH_TENSOR(torch::linalg_matrix_norm(*tensor, (fronuc == 0) ? "fro" : "nuc", dims, keepdim, c10::nullopt)) } Tensor THSLinalg_vector_norm(const Tensor tensor, const Scalar ord, const int64_t* dim, const int dim_length, const bool keepdim) { auto dims = c10::ArrayRef(dim, dim_length); - CATCH_TENSOR(torch::linalg::vector_norm(*tensor, *ord, dims, keepdim, c10::nullopt)) + CATCH_TENSOR(torch::linalg_vector_norm(*tensor, *ord, dims, keepdim, c10::nullopt)) } Tensor THSLinalg_matrix_rank(const Tensor tensor, const double atol, const bool has_atol, const double rtol, const bool has_rtol, const bool hermitian) @@ -210,7 +210,7 @@ Tensor THSLinalg_matrix_rank(const Tensor tensor, const double atol, const bool auto atol_ = has_atol ? atol : c10::optional(); auto rtol_ = has_rtol ? rtol : c10::optional(); - CATCH_TENSOR(torch::linalg::matrix_rank(*tensor, atol_, rtol_, hermitian)) + CATCH_TENSOR(torch::linalg_matrix_rank(*tensor, atol_, rtol_, hermitian)) } Tensor THSLinalg_matrix_rank_tensor(const Tensor tensor, const Tensor atol, const Tensor rtol, const bool hermitian) @@ -218,41 +218,41 @@ Tensor THSLinalg_matrix_rank_tensor(const Tensor tensor, const Tensor atol, cons const c10::optional atol_ = atol != nullptr ? *atol : c10::optional(); const c10::optional rtol_ = rtol != nullptr ? *rtol : c10::optional(); - CATCH_TENSOR(torch::linalg::matrix_rank(*tensor, atol_, rtol_, hermitian)) + CATCH_TENSOR(torch::linalg_matrix_rank(*tensor, atol_, rtol_, hermitian)) } Tensor THSLinalg_matrix_power(const Tensor tensor, const int64_t n) { - CATCH_TENSOR(torch::linalg::matrix_power(*tensor, n)) + CATCH_TENSOR(torch::linalg_matrix_power(*tensor, n)) } Tensor THSLinalg_multi_dot(const Tensor* tensors, const int length) { - CATCH_TENSOR(torch::linalg::multi_dot(toTensors((torch::Tensor**)tensors, length))) + CATCH_TENSOR(torch::linalg_multi_dot(toTensors((torch::Tensor**)tensors, length))) } Tensor THSLinalg_norm_str(const Tensor tensor, const char* p, const int64_t* dim, const int dim_length, const bool keepdim) { c10::optional dims = (dim == nullptr) ? c10::nullopt : c10::optional(at::ArrayRef(dim, dim_length)); - CATCH_TENSOR(torch::linalg::norm(*tensor, p, dims, keepdim, c10::nullopt)) + CATCH_TENSOR(torch::linalg_norm(*tensor, p, dims, keepdim, c10::nullopt)) } Tensor THSLinalg_norm_float(const Tensor tensor, const double p, const int64_t* dim, const int dim_length, const bool keepdim) { c10::optional dims = (dim == nullptr) ? c10::nullopt : c10::optional(at::ArrayRef(dim, dim_length)); - CATCH_TENSOR(torch::linalg::norm(*tensor, p, dims, keepdim, c10::nullopt)) + CATCH_TENSOR(torch::linalg_norm(*tensor, p, dims, keepdim, c10::nullopt)) } Tensor THSLinalg_norm_int(const Tensor tensor, const int p, const int64_t* dim, const int dim_length, const bool keepdim) { c10::optional dims = (dim == nullptr) ? c10::nullopt : c10::optional(at::ArrayRef(dim, dim_length)); - CATCH_TENSOR(torch::linalg::norm(*tensor, p, dims, keepdim, c10::nullopt)) + CATCH_TENSOR(torch::linalg_norm(*tensor, p, dims, keepdim, c10::nullopt)) } Tensor THSLinalg_norm_opt(const Tensor tensor, const int64_t* dim, const int dim_length, const bool keepdim) { c10::optional dims = (dim == nullptr) ? c10::nullopt : c10::optional(at::ArrayRef(dim, dim_length)); - CATCH_TENSOR(torch::linalg::norm(*tensor, c10::nullopt, dims, keepdim, c10::nullopt)) + CATCH_TENSOR(torch::linalg_norm(*tensor, c10::nullopt, dims, keepdim, c10::nullopt)) } Tensor THSLinalg_pinv(const Tensor tensor, const double atol, const bool has_atol, const double rtol, const bool has_rtol, const bool hermitian) @@ -273,7 +273,7 @@ Tensor THSLinalg_pinv_tensor(const Tensor tensor, const Tensor atol, const Tenso Tensor THSLinalg_pinverse(const Tensor tensor, const double rcond, const bool hermitian) { - CATCH_TENSOR(torch::linalg::pinv(*tensor, rcond, hermitian)) + CATCH_TENSOR(torch::linalg_pinv(*tensor, rcond, hermitian)) } Tensor THSLinalg_qr(const Tensor tensor, const char mode, Tensor* R) @@ -295,31 +295,31 @@ Tensor THSLinalg_qr(const Tensor tensor, const char mode, Tensor* R) Tensor THSLinalg_solve(const Tensor tensor, Tensor other, bool left) { - CATCH_TENSOR(torch::linalg::solve(*tensor, *other, left)) + CATCH_TENSOR(torch::linalg_solve(*tensor, *other, left)) } Tensor THSLinalg_solve_ex(const Tensor tensor, Tensor other, bool left, bool check_errors, Tensor* S) { std::tuple res; - CATCH(res = torch::linalg::solve_ex(*tensor, *other, left, check_errors);); + CATCH(res = torch::linalg_solve_ex(*tensor, *other, left, check_errors);); *S = ResultTensor(std::get<1>(res)); return ResultTensor(std::get<0>(res)); } Tensor THSLinalg_solve_triangular(const Tensor tensor, Tensor other, bool upper, bool left, bool unitriangular) { - CATCH_TENSOR(torch::linalg::solve_triangular(*tensor, *other, upper, left, unitriangular)) + CATCH_TENSOR(torch::linalg_solve_triangular(*tensor, *other, upper, left, unitriangular)) } Tensor THSLinalg_solve_triangular_out(const Tensor tensor, Tensor other, bool upper, bool left, bool unitriangular, Tensor result) { - CATCH_TENSOR(torch::linalg::solve_triangular_out(*result, *tensor, *other, upper, left, unitriangular)) + CATCH_TENSOR(torch::linalg_solve_triangular_out(*result, *tensor, *other, upper, left, unitriangular)) } Tensor THSLinalg_svd(const Tensor tensor, const bool full_matrices, Tensor* S, Tensor* Vh) { std::tuple res; - CATCH(res = torch::linalg::svd(*tensor, full_matrices, c10::nullopt);); + CATCH(res = torch::linalg_svd(*tensor, full_matrices, c10::nullopt);); *S = ResultTensor(std::get<1>(res)); *Vh = ResultTensor(std::get<2>(res)); return ResultTensor(std::get<0>(res)); @@ -327,18 +327,18 @@ Tensor THSLinalg_svd(const Tensor tensor, const bool full_matrices, Tensor* S, T Tensor THSLinalg_svdvals(const Tensor tensor) { - CATCH_TENSOR(res = torch::linalg::svdvals(*tensor, c10::nullopt)) + CATCH_TENSOR(res = torch::linalg_svdvals(*tensor, c10::nullopt)) } Tensor THSLinalg_tensorinv(const Tensor tensor, const int64_t ind) { - CATCH_TENSOR(torch::linalg::tensorinv(*tensor, ind)) + CATCH_TENSOR(torch::linalg_tensorinv(*tensor, ind)) } Tensor THSLinalg_tensorsolve(const Tensor tensor, Tensor other, const int64_t* dim, const int dim_length) { c10::optional dims = (dim == nullptr) ? c10::nullopt : c10::optional(at::ArrayRef(dim, dim_length)); - CATCH_TENSOR(torch::linalg::tensorsolve(*tensor, *other, dims)) + CATCH_TENSOR(torch::linalg_tensorsolve(*tensor, *other, dims)) } Tensor THSLinalg_vander(const Tensor tensor, const int64_t N) diff --git a/src/Redist/libtorch-cpu/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcpu.zip.sha b/src/Redist/libtorch-cpu/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcpu.zip.sha new file mode 100644 index 000000000..2c5e3f23f --- /dev/null +++ b/src/Redist/libtorch-cpu/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcpu.zip.sha @@ -0,0 +1 @@ +63D572598C8D532128A335018913E795C1BBB32602CE378896DC8CFBB5590976 diff --git a/src/Redist/libtorch-cpu/libtorch-macos-arm64-2.7.1.zip.sha b/src/Redist/libtorch-cpu/libtorch-macos-arm64-2.7.1.zip.sha new file mode 100644 index 000000000..ebf2f99da --- /dev/null +++ b/src/Redist/libtorch-cpu/libtorch-macos-arm64-2.7.1.zip.sha @@ -0,0 +1 @@ +AA89AC85B91C83D0F976F8D135330D51E38AB777B26EC24F312FD58D079314CB diff --git a/src/Redist/libtorch-cpu/libtorch-win-shared-with-deps-2.7.1%2Bcpu.zip.sha b/src/Redist/libtorch-cpu/libtorch-win-shared-with-deps-2.7.1%2Bcpu.zip.sha new file mode 100644 index 000000000..c598d75f9 --- /dev/null +++ b/src/Redist/libtorch-cpu/libtorch-win-shared-with-deps-2.7.1%2Bcpu.zip.sha @@ -0,0 +1 @@ +A294845080D67FF579073B7B6E17E7DA1CC856DDE6E63FCA2D71498B482580F8 diff --git a/src/Redist/libtorch-cpu/libtorch-win-shared-with-deps-debug-2.7.1%2Bcpu.zip.sha b/src/Redist/libtorch-cpu/libtorch-win-shared-with-deps-debug-2.7.1%2Bcpu.zip.sha new file mode 100644 index 000000000..58992e879 --- /dev/null +++ b/src/Redist/libtorch-cpu/libtorch-win-shared-with-deps-debug-2.7.1%2Bcpu.zip.sha @@ -0,0 +1 @@ +E8D024BBD35FC007A033ABAA616D3104AE0D6262F66A6245A115E32F4A9FC44A diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-cuda-12.1.proj b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj similarity index 96% rename from src/Redist/libtorch-cuda-12.1/libtorch-cuda-12.1.proj rename to src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj index 800bb14cd..84f21d993 100644 --- a/src/Redist/libtorch-cuda-12.1/libtorch-cuda-12.1.proj +++ b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj @@ -51,7 +51,7 @@ - + @@ -70,7 +70,7 @@ - + @@ -86,9 +86,9 @@ - + - + @@ -96,8 +96,10 @@ - + + + @@ -115,12 +117,12 @@ - - + + - + @@ -130,6 +132,8 @@ + + diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.2.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-cxx11-abi-shared-with-deps-2.2.1%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.2.1%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-cxx11-abi-shared-with-deps-2.2.1%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.2.1%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-cxx11-abi-shared-with-deps-2.4.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.4.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-cxx11-abi-shared-with-deps-2.4.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.4.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcu128.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcu128.zip.sha new file mode 100644 index 000000000..f10bf4d6b --- /dev/null +++ b/src/Redist/libtorch-cuda-12.8/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcu128.zip.sha @@ -0,0 +1 @@ +AE513B437AE99150744EF1D06B02A4ECBBB9275C9FFE540C88909623E3293041 diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-1.11.0%2Bcu113.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-1.11.0%2Bcu113.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-1.11.0%2Bcu113.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-1.11.0%2Bcu113.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-1.12.0%2Bcu113.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-1.12.0%2Bcu113.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-1.12.0%2Bcu113.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-1.12.0%2Bcu113.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-1.13.0%2Bcu117.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-1.13.0%2Bcu117.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-1.13.0%2Bcu117.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-1.13.0%2Bcu117.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-2.0.1%2Bcu117.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-2.0.1%2Bcu117.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-2.0.1%2Bcu117.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-2.0.1%2Bcu117.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-2.1.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-2.1.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-2.1.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-2.1.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-2.2.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-2.2.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-shared-with-deps-2.2.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-shared-with-deps-2.2.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-1.11.0%2Bcu113.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-1.11.0%2Bcu113.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-1.11.0%2Bcu113.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-1.11.0%2Bcu113.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-1.12.0%2Bcu113.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-1.12.0%2Bcu113.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-1.12.0%2Bcu113.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-1.12.0%2Bcu113.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-1.13.0%2Bcu117.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-1.13.0%2Bcu117.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-1.13.0%2Bcu117.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-1.13.0%2Bcu117.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.0.1%2Bcu117.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.0.1%2Bcu117.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.0.1%2Bcu117.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.0.1%2Bcu117.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.1.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.1.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.1.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.1.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.2.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.2.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.2.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.2.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.2.1%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.2.1%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.2.1%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.2.1%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.4.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.4.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.4.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.4.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.5.1%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.5.1%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-2.5.1%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.5.1%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.7.1%2Bcu128.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.7.1%2Bcu128.zip.sha new file mode 100644 index 000000000..bd127ed82 --- /dev/null +++ b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-2.7.1%2Bcu128.zip.sha @@ -0,0 +1 @@ +BDBF643D648E2BF9E8603472D6C6FF4BAE5F79A49FE4776F215B4C45C90A7F19 diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-1.11.0%2Bcu113.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-1.11.0%2Bcu113.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-1.11.0%2Bcu113.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-1.11.0%2Bcu113.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-1.12.0%2Bcu113.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-1.12.0%2Bcu113.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-1.12.0%2Bcu113.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-1.12.0%2Bcu113.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-1.13.0%2Bcu117.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-1.13.0%2Bcu117.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-1.13.0%2Bcu117.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-1.13.0%2Bcu117.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.0.1%2Bcu117.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.0.1%2Bcu117.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.0.1%2Bcu117.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.0.1%2Bcu117.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.1.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.1.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.1.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.1.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.2.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.2.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.2.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.2.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.2.1%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.2.1%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.2.1%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.2.1%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.4.0%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.4.0%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.4.0%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.4.0%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.5.1%2Bcu121.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.5.1%2Bcu121.zip.sha similarity index 100% rename from src/Redist/libtorch-cuda-12.1/libtorch-win-shared-with-deps-debug-2.5.1%2Bcu121.zip.sha rename to src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.5.1%2Bcu121.zip.sha diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.7.1%2Bcu128.zip.sha b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.7.1%2Bcu128.zip.sha new file mode 100644 index 000000000..7d5160d8a --- /dev/null +++ b/src/Redist/libtorch-cuda-12.8/libtorch-win-shared-with-deps-debug-2.7.1%2Bcu128.zip.sha @@ -0,0 +1 @@ +B1D8287A7414073E9C6F58327EE7214E3BB96A214A128F80F0FD6EAC81AAFEB4 diff --git a/src/TorchSharp/Torch.cs b/src/TorchSharp/Torch.cs index aa930ec3b..104adf0a2 100644 --- a/src/TorchSharp/Torch.cs +++ b/src/TorchSharp/Torch.cs @@ -20,13 +20,13 @@ public static partial class torch { #if LIBTORCH_2_2_2_0 const string libtorchPackageVersion = "2.2.2.0"; -#elif LIBTORCH_2_5_1_0 - const string libtorchPackageVersion = "2.5.1.0"; +#elif LIBTORCH_2_7_1_0 + const string libtorchPackageVersion = "2.7.1.0"; #else #error "Please update libtorchPackageVersion to match LibTorchPackageVersion" #endif -#if CUDA_12_1 - const string cudaVersion = "12.1"; +#if CUDA_12_8 + const string cudaVersion = "12.8"; #else #error "Please update cudaVersion to match CudaVersionDot" #endif From 2b27ed293b861a7fcc7d5c7850da722c5b1d91a0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Jul 2025 12:44:17 +0200 Subject: [PATCH 02/41] enable testing --- build/ci/job-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/ci/job-template.yml b/build/ci/job-template.yml index ad8e323b1..fe08c3a8b 100644 --- a/build/ci/job-template.yml +++ b/build/ci/job-template.yml @@ -8,7 +8,7 @@ parameters: jobs: - job: ${{ parameters.name }} - condition: ne(variables['build.sourcebranchname'], 'main') + # condition: ne(variables['build.sourcebranchname'], 'main') variables: _prepScript: ${{ parameters.prepScript }} _testScript: ${{ parameters.testScript }} From abc1ec6480bf91e5502b4589ba988915e3c867ee Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Mon, 7 Jul 2025 17:09:08 +0200 Subject: [PATCH 03/41] retrigger --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e752076d5..44e6b845b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -829,7 +829,7 @@ jobs: continueOnError: true # push the Linux Cuda packages - - task: NuGetCommand@2 + - task: NuGetCommand@2 displayName: 'NuGet push (cuda linux-x64)' inputs: command: push From bef4ed8ced4a360564a01de6e44ab3c053d56446 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 10:12:46 +0200 Subject: [PATCH 04/41] run build cuda packages --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e752076d5..9e7d81b95 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], false), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -704,7 +704,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Push_libtorch_cuda_win_Packages ################################################################################ - condition: and(eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], true)) + condition: and(eq('${{ parameters.BuildLibTorchPackages }}', false), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], true)) dependsOn: - Build_libtorch_cuda_win_Packages - CodeSign_Extras From 03705b8c247972f1058b54ac57f1c9868daf1d68 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 10:35:18 +0200 Subject: [PATCH 05/41] enable all workflows --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4131f1a19..c6e1021d4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], false), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: @@ -704,7 +704,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Push_libtorch_cuda_win_Packages ################################################################################ - condition: and(eq('${{ parameters.BuildLibTorchPackages }}', false), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], true)) + condition: and(eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], false)) dependsOn: - Build_libtorch_cuda_win_Packages - CodeSign_Extras @@ -789,7 +789,7 @@ jobs: ################################################################################ - job: Push_libtorch_cuda_linux_Packages ################################################################################ - condition: and(eq('${{ parameters.BuildLibTorchPackages }}', 'true'), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], true)) + condition: and(eq('${{ parameters.BuildLibTorchPackages }}', 'true'), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], false)) dependsOn: - Build_libtorch_cuda_linux_Packages - CodeSign_Extras From 27e2da799a13243ffb5d9531a5613c6d7f65eb40 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 11:27:37 +0200 Subject: [PATCH 06/41] retrigger --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c6e1021d4..04ffeadbc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], false), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], false), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: @@ -704,7 +704,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Push_libtorch_cuda_win_Packages ################################################################################ - condition: and(eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], false)) + condition: and(eq('${{ parameters.BuildLibTorchPackages }}', false), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], false)) dependsOn: - Build_libtorch_cuda_win_Packages - CodeSign_Extras From c0e8863f77f371541674dbcd11ebb534b7afb114 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 11:51:16 +0200 Subject: [PATCH 07/41] retrigger --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 04ffeadbc..aaf95534d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], false), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', false)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], false), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', false)) dependsOn: - Linux_Native_Build_For_Packages variables: From 2f496284dc83b5bb646e90d8f07d3a2dd4b12a3d Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 12:31:42 +0200 Subject: [PATCH 08/41] revert to original azure pipelines --- azure-pipelines.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aaf95534d..dac3749dc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', false)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', false)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: @@ -704,7 +704,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Push_libtorch_cuda_win_Packages ################################################################################ - condition: and(eq('${{ parameters.BuildLibTorchPackages }}', false), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], false)) + condition: and(eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], true)) dependsOn: - Build_libtorch_cuda_win_Packages - CodeSign_Extras @@ -789,7 +789,7 @@ jobs: ################################################################################ - job: Push_libtorch_cuda_linux_Packages ################################################################################ - condition: and(eq('${{ parameters.BuildLibTorchPackages }}', 'true'), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], false)) + condition: and(eq('${{ parameters.BuildLibTorchPackages }}', 'true'), eq('${{ parameters.PushPackagesToFeed }}', true), ne(variables['system.pullrequest.isfork'], true)) dependsOn: - Build_libtorch_cuda_linux_Packages - CodeSign_Extras @@ -829,7 +829,7 @@ jobs: continueOnError: true # push the Linux Cuda packages - - task: NuGetCommand@2 + - task: NuGetCommand@2 displayName: 'NuGet push (cuda linux-x64)' inputs: command: push @@ -859,4 +859,4 @@ jobs: publishVstsFeed: 'TorchSharp/TestPackages' allowPackageConflicts: true # often fails - try but ignore the error until we sort it out - continueOnError: true + continueOnError: true \ No newline at end of file From af70eecf965661fef72606bb0dfe58f312416db1 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 13:40:18 +0200 Subject: [PATCH 09/41] build libtorch cuda workflow test --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dac3749dc..b9fe2c19e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: From d351d20de8165dc9b925aa94d7ff7983cfa9da61 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 14:55:32 +0200 Subject: [PATCH 10/41] undo pipelines changes --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b9fe2c19e..dac3749dc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: From dda1f74a8618197cdc74c2adcf317b5afd636d9b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 16:32:20 +0200 Subject: [PATCH 11/41] disable fork pull request check --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dac3749dc..b9fe2c19e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: From 61e98a16503f0dcf8a6b336fd891f8f439afc8d5 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 16:38:00 +0200 Subject: [PATCH 12/41] use correct cuda version in azure pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b9fe2c19e..33f37878e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -117,7 +117,7 @@ jobs: condition: eq('${{ parameters.BuildLibTorchPackages }}', true) displayName: Download libtorch native binaries - - script: dotnet build -c $(BuildConfig) src/Redist/libtorch-cuda-12.1/libtorch-cuda-12.1.proj /p:UpdateSHA=true /p:SkipTests=true /p:TargetOS=linux /t:Build /p:IncludeLibTorchCudaPackages=true + - script: dotnet build -c $(BuildConfig) src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj /p:UpdateSHA=true /p:SkipTests=true /p:TargetOS=linux /t:Build /p:IncludeLibTorchCudaPackages=true condition: eq('${{ parameters.BuildLibTorchPackages }}', true) displayName: Download libtorch native CUDA binaries @@ -157,7 +157,7 @@ jobs: - script: dotnet build -c $(BuildConfig) src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:SkipTests=true /p:TargetOS=windows /t:Build /p:IncludeLibTorchCpuPackages=true displayName: Download libtorch native binaries - - script: dotnet build -c $(BuildConfig) src/Redist/libtorch-cuda-12.1/libtorch-cuda-12.1.proj /p:UpdateSHA=true /p:SkipTests=true /p:TargetOS=windows /t:Build /p:IncludeLibTorchCudaPackages=true + - script: dotnet build -c $(BuildConfig) src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj /p:UpdateSHA=true /p:SkipTests=true /p:TargetOS=windows /t:Build /p:IncludeLibTorchCudaPackages=true condition: eq('${{ parameters.BuildLibTorchPackages }}', true) displayName: Download libtorch native CUDA binaries From 8c5526ca4a5ff3318b0fa21ea0e76ed6e524769f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Jul 2025 16:43:54 +0200 Subject: [PATCH 13/41] test conditions --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 33f37878e..06da79392 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -348,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: From 78216cf2aeb11bee33f5654e75a9cd3fb666b41a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Jul 2025 13:20:28 +0200 Subject: [PATCH 14/41] set buildlibtorchpackages to true --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 06da79392..81fff490f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,7 @@ parameters: # push them to the artifacts feed of the Azure CI project - name: BuildLibTorchPackages type: boolean - default: false + default: true - name: PushPackagesToFeed type: boolean default: false From 57568442c7c7fc6171c826368f6f7c14db187922 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Jul 2025 13:28:15 +0200 Subject: [PATCH 15/41] test build and sign --- azure-pipelines.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 81fff490f..0a49b83fd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -44,6 +44,7 @@ resources: jobs: - template: /build/ci/job-template.yml + condition: ne(variables['build.sourcebranchname'], 'main') parameters: name: Ubuntu_x64 # This reports the GLIB_ and GLIBCXX_ dependencies on the system which ends up getting baked into @@ -57,6 +58,7 @@ jobs: container: UbuntuContainer - template: /build/ci/job-template.yml + condition: ne(variables['build.sourcebranchname'], 'main') parameters: prepScript: echo "no prep needed" name: Windows_x64_NetCore @@ -66,6 +68,7 @@ jobs: vmImage: 'windows-latest' - template: /build/ci/job-template.yml + condition: ne(variables['build.sourcebranchname'], 'main') parameters: prepScript: echo "no prep needed" name: Windows_x64_NetFX @@ -75,6 +78,7 @@ jobs: vmImage: 'windows-latest' - template: /build/ci/job-template.yml + condition: ne(variables['build.sourcebranchname'], 'main') parameters: prepScript: echo "no prep needed" name: MacOS_arm64 @@ -91,7 +95,7 @@ jobs: ################################################################################ - job: Linux_Native_Build_For_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) @@ -136,7 +140,7 @@ jobs: ################################################################################ - job: Windows_Native_Build_For_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) @@ -177,7 +181,7 @@ jobs: # ################################################################################ - job: MacOS_arm64_Native_Build_For_Packages # ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) @@ -206,7 +210,7 @@ jobs: ################################################################################ - job: Build_TorchSharp_And_libtorch_cpu_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) dependsOn: - Linux_Native_Build_For_Packages - Windows_Native_Build_For_Packages @@ -348,7 +352,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +407,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: @@ -469,7 +473,7 @@ jobs: ################################################################################ - job: CodeSign_Core ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) dependsOn: - Build_TorchSharp_And_libtorch_cpu_Packages variables: @@ -521,7 +525,7 @@ jobs: ################################################################################ - job: CodeSign_Extras ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Build_libtorch_cuda_win_Packages - Build_libtorch_cuda_linux_Packages From 31fc2a381951f330ea433dbf8b52c12a82e3b6a0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Jul 2025 13:31:46 +0200 Subject: [PATCH 16/41] fix conditions --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0a49b83fd..a2ba97c20 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -44,13 +44,13 @@ resources: jobs: - template: /build/ci/job-template.yml - condition: ne(variables['build.sourcebranchname'], 'main') parameters: name: Ubuntu_x64 # This reports the GLIB_ and GLIBCXX_ dependencies on the system which ends up getting baked into # the generated libTorchSharp.so (and partly determines which Linux systems that binary will # be usable on), then installs clang-7.0 (LibTorch likes this for building C++ 14), then installs .NET 6.0 prepScript: ${{ variables.LinuxPrepScript }} + condition: ne(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true -c testScript: dotnet test /p:SkipCuda=true --blame test/TorchSharpTest/TorchSharpTest.csproj -c pool: @@ -58,8 +58,8 @@ jobs: container: UbuntuContainer - template: /build/ci/job-template.yml - condition: ne(variables['build.sourcebranchname'], 'main') parameters: + condition: ne(variables['build.sourcebranchname'], 'main') prepScript: echo "no prep needed" name: Windows_x64_NetCore buildScript: dotnet build /p:SkipCuda=true /p:SkipNetFxBuild=true -c @@ -68,20 +68,20 @@ jobs: vmImage: 'windows-latest' - template: /build/ci/job-template.yml - condition: ne(variables['build.sourcebranchname'], 'main') parameters: prepScript: echo "no prep needed" name: Windows_x64_NetFX + condition: ne(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true /p:SkipNetCoreBuild=true -c testScript: dotnet test /p:SkipCuda=true /p:SkipNetCoreBuild=true --blame test\TorchSharpTest\TorchSharpTest.csproj -c pool: vmImage: 'windows-latest' - template: /build/ci/job-template.yml - condition: ne(variables['build.sourcebranchname'], 'main') parameters: prepScript: echo "no prep needed" name: MacOS_arm64 + condition: ne(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true /p:TargetArchitecture=arm64 -c testScript: echo "Azure Pipelines does not support arm64 yet, can't run tests" pool: From a857f27f6f6232a949391de61d28277fcfc89c1a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Jul 2025 13:34:48 +0200 Subject: [PATCH 17/41] change condition --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a2ba97c20..b91628a38 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -50,7 +50,7 @@ jobs: # the generated libTorchSharp.so (and partly determines which Linux systems that binary will # be usable on), then installs clang-7.0 (LibTorch likes this for building C++ 14), then installs .NET 6.0 prepScript: ${{ variables.LinuxPrepScript }} - condition: ne(variables['build.sourcebranchname'], 'main') + condition: eq(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true -c testScript: dotnet test /p:SkipCuda=true --blame test/TorchSharpTest/TorchSharpTest.csproj -c pool: @@ -59,7 +59,7 @@ jobs: - template: /build/ci/job-template.yml parameters: - condition: ne(variables['build.sourcebranchname'], 'main') + condition: eq(variables['build.sourcebranchname'], 'main') prepScript: echo "no prep needed" name: Windows_x64_NetCore buildScript: dotnet build /p:SkipCuda=true /p:SkipNetFxBuild=true -c @@ -71,7 +71,7 @@ jobs: parameters: prepScript: echo "no prep needed" name: Windows_x64_NetFX - condition: ne(variables['build.sourcebranchname'], 'main') + condition: eq(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true /p:SkipNetCoreBuild=true -c testScript: dotnet test /p:SkipCuda=true /p:SkipNetCoreBuild=true --blame test\TorchSharpTest\TorchSharpTest.csproj -c pool: @@ -81,7 +81,7 @@ jobs: parameters: prepScript: echo "no prep needed" name: MacOS_arm64 - condition: ne(variables['build.sourcebranchname'], 'main') + condition: eq(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true /p:TargetArchitecture=arm64 -c testScript: echo "Azure Pipelines does not support arm64 yet, can't run tests" pool: From b9349074463cc5a11a9553407b6c679ec836308e Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Jul 2025 14:00:21 +0200 Subject: [PATCH 18/41] test --- azure-pipelines.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b91628a38..06da79392 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,7 @@ parameters: # push them to the artifacts feed of the Azure CI project - name: BuildLibTorchPackages type: boolean - default: true + default: false - name: PushPackagesToFeed type: boolean default: false @@ -50,7 +50,6 @@ jobs: # the generated libTorchSharp.so (and partly determines which Linux systems that binary will # be usable on), then installs clang-7.0 (LibTorch likes this for building C++ 14), then installs .NET 6.0 prepScript: ${{ variables.LinuxPrepScript }} - condition: eq(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true -c testScript: dotnet test /p:SkipCuda=true --blame test/TorchSharpTest/TorchSharpTest.csproj -c pool: @@ -59,7 +58,6 @@ jobs: - template: /build/ci/job-template.yml parameters: - condition: eq(variables['build.sourcebranchname'], 'main') prepScript: echo "no prep needed" name: Windows_x64_NetCore buildScript: dotnet build /p:SkipCuda=true /p:SkipNetFxBuild=true -c @@ -71,7 +69,6 @@ jobs: parameters: prepScript: echo "no prep needed" name: Windows_x64_NetFX - condition: eq(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true /p:SkipNetCoreBuild=true -c testScript: dotnet test /p:SkipCuda=true /p:SkipNetCoreBuild=true --blame test\TorchSharpTest\TorchSharpTest.csproj -c pool: @@ -81,7 +78,6 @@ jobs: parameters: prepScript: echo "no prep needed" name: MacOS_arm64 - condition: eq(variables['build.sourcebranchname'], 'main') buildScript: dotnet build /p:SkipCuda=true /p:TargetArchitecture=arm64 -c testScript: echo "Azure Pipelines does not support arm64 yet, can't run tests" pool: @@ -95,7 +91,7 @@ jobs: ################################################################################ - job: Linux_Native_Build_For_Packages ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) @@ -140,7 +136,7 @@ jobs: ################################################################################ - job: Windows_Native_Build_For_Packages ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) @@ -181,7 +177,7 @@ jobs: # ################################################################################ - job: MacOS_arm64_Native_Build_For_Packages # ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) @@ -210,7 +206,7 @@ jobs: ################################################################################ - job: Build_TorchSharp_And_libtorch_cpu_Packages ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) dependsOn: - Linux_Native_Build_For_Packages - Windows_Native_Build_For_Packages @@ -352,7 +348,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -407,7 +403,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: @@ -473,7 +469,7 @@ jobs: ################################################################################ - job: CodeSign_Core ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) dependsOn: - Build_TorchSharp_And_libtorch_cpu_Packages variables: @@ -525,7 +521,7 @@ jobs: ################################################################################ - job: CodeSign_Extras ################################################################################ - #condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Build_libtorch_cuda_win_Packages - Build_libtorch_cuda_linux_Packages From b286d78ce6551dc870f3ebcc96c2d918b9bda38b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Jul 2025 14:09:00 +0200 Subject: [PATCH 19/41] undo comment --- build/ci/job-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/ci/job-template.yml b/build/ci/job-template.yml index fe08c3a8b..ad8e323b1 100644 --- a/build/ci/job-template.yml +++ b/build/ci/job-template.yml @@ -8,7 +8,7 @@ parameters: jobs: - job: ${{ parameters.name }} - # condition: ne(variables['build.sourcebranchname'], 'main') + condition: ne(variables['build.sourcebranchname'], 'main') variables: _prepScript: ${{ parameters.prepScript }} _testScript: ${{ parameters.testScript }} From 3b072552f684d0675b014ab2f5ecb293d0dc07ae Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Jul 2025 16:18:10 +0200 Subject: [PATCH 20/41] test --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 06da79392..3c7d7b1a3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -382,7 +382,7 @@ jobs: - script: dotnet restore pkg/pack.proj /p:Configuration=Release displayName: Restore package projects - - script: dotnet pack -c $(BuildConfig) --no-build -v:n /p:SkipNative=true /p:SkipTests=true /p:IncludeTorchSharpPackage=false /p:IncludeLibTorchCpuPackages=false /p:IncludeLibTorchCudaPackages=true pkg/pack.proj + - script: dotnet pack -c $(BuildConfig) --no-build -v:n /p:SkipNative=true /p:SkipTests=true /p:IncludeTorchSharpPackage=false /p:IncludeLibTorchCpuPackages=false /p:IncludeLibTorchCudaPackages=true /p:TargetOS=windows pkg/pack.proj displayName: Create Packages # We are 10GB space-constrained on the Azure Pipelines CI system so clean up what we can @@ -448,7 +448,7 @@ jobs: - script: dotnet restore pkg/pack.proj /p:Configuration=Release displayName: Restore package projects - - script: dotnet pack -c $(BuildConfig) --no-build -v:n /p:SkipNative=true /p:SkipTests=true /p:ApiCompatGenerateSuppressionFile=true /p:IncludeTorchSharpPackage=false /p:IncludeLibTorchCpuPackages=false /p:IncludeLibTorchCudaPackages=true pkg/pack.proj + - script: dotnet pack -c $(BuildConfig) --no-build -v:n /p:SkipNative=true /p:SkipTests=true /p:ApiCompatGenerateSuppressionFile=true /p:IncludeTorchSharpPackage=false /p:IncludeLibTorchCpuPackages=false /p:IncludeLibTorchCudaPackages=true /p:TargetOS=linux pkg/pack.proj displayName: Create Packages # We are 10GB space-constrained on the Azure Pipelines CI system so clean up what we can From 50f81a6f656beeda48952a1f9630882ce02f89d0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Jul 2025 13:48:58 +0200 Subject: [PATCH 21/41] add debug to pack.proj --- pkg/pack.proj | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/pack.proj b/pkg/pack.proj index 3c9db2f98..e9b3f963c 100644 --- a/pkg/pack.proj +++ b/pkg/pack.proj @@ -15,6 +15,15 @@ + + + + + + + + + From 72e656f054cffaadd98ac6ee8667b4fd5015e7d5 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Jul 2025 14:18:17 +0200 Subject: [PATCH 22/41] extra debugging --- azure-pipelines.yml | 2 +- pkg/pack.proj | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3c7d7b1a3..c5053c481 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,7 @@ parameters: # push them to the artifacts feed of the Azure CI project - name: BuildLibTorchPackages type: boolean - default: false + default: true - name: PushPackagesToFeed type: boolean default: false diff --git a/pkg/pack.proj b/pkg/pack.proj index e9b3f963c..205707485 100644 --- a/pkg/pack.proj +++ b/pkg/pack.proj @@ -15,14 +15,18 @@ - - - - - - - - + + + + + + + + + + + + From 405e47942fcd9b9edafbbb6335af7de51063c0a6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Jul 2025 14:58:05 +0200 Subject: [PATCH 23/41] test --- TorchSharp.sln | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/TorchSharp.sln b/TorchSharp.sln index 9a9a73f9e..b27ac7e8a 100644 --- a/TorchSharp.sln +++ b/TorchSharp.sln @@ -34,7 +34,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TorchSharp", "TorchSharp", pkg\TorchSharp\TorchSharp.symbols.nupkgproj = pkg\TorchSharp\TorchSharp.symbols.nupkgproj EndProjectSection EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LibTorchSharp", "bin\obj\x64.Debug\Native\LibTorchSharp\LibTorchSharp.vcxproj", "{CAD9DB7F-3223-3324-884D-FA2381593DA7}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LibTorchSharp", "bin\obj\x64.Debug\Native\LibTorchSharp\LibTorchSharp.vcxproj", "{E7467DDF-893C-38A8-8E19-6B4E3FB10F55}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LibTorchSharp", "bin\obj\x64.Release\Native\LibTorchSharp\LibTorchSharp.vcxproj", "{BB811429-0DF1-3D22-B664-09C2F5A9E0AB}" EndProject @@ -46,7 +46,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Redist", "Redist", "{D8C60CD8-8429-45F2-A755-47B6CD10FDF8}" ProjectSection(SolutionItems) = preProject src\Redist\libtorch-cpu\libtorch-cpu.proj = src\Redist\libtorch-cpu\libtorch-cpu.proj - src\Redist\libtorch-cuda-12.1\libtorch-cuda-12.1.proj = src\Redist\libtorch-cuda-12.1\libtorch-cuda-12.1.proj + src\Redist\libtorch-cuda-12.8\libtorch-cuda-12.8.proj = src\Redist\libtorch-cuda-12.8\libtorch-cuda-12.8.proj EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Native-Release", "Native-Release", "{4DB9E84D-324C-408F-87A6-246E86205540}" @@ -107,14 +107,10 @@ Global {42B45168-476D-4BFA-87B8-81A34E6295CD}.Release|Any CPU.Build.0 = Release|Any CPU {42B45168-476D-4BFA-87B8-81A34E6295CD}.Release|x64.ActiveCfg = Release|Any CPU {42B45168-476D-4BFA-87B8-81A34E6295CD}.Release|x64.Build.0 = Release|Any CPU - {CAD9DB7F-3223-3324-884D-FA2381593DA7}.Debug|Any CPU.ActiveCfg = Debug|x64 - {CAD9DB7F-3223-3324-884D-FA2381593DA7}.Debug|x64.ActiveCfg = Debug|x64 - {CAD9DB7F-3223-3324-884D-FA2381593DA7}.Release|Any CPU.ActiveCfg = Release|x64 - {CAD9DB7F-3223-3324-884D-FA2381593DA7}.Release|x64.ActiveCfg = Release|x64 - {E4C0DBEE-0815-311B-9065-137BB50BD793}.Debug|Any CPU.ActiveCfg = Debug|x64 - {E4C0DBEE-0815-311B-9065-137BB50BD793}.Debug|x64.ActiveCfg = Debug|x64 - {E4C0DBEE-0815-311B-9065-137BB50BD793}.Release|Any CPU.ActiveCfg = Release|x64 - {E4C0DBEE-0815-311B-9065-137BB50BD793}.Release|x64.ActiveCfg = Release|x64 + {E7467DDF-893C-38A8-8E19-6B4E3FB10F55}.Debug|Any CPU.ActiveCfg = Debug|x64 + {E7467DDF-893C-38A8-8E19-6B4E3FB10F55}.Debug|x64.ActiveCfg = Debug|x64 + {E7467DDF-893C-38A8-8E19-6B4E3FB10F55}.Release|Any CPU.ActiveCfg = Release|x64 + {E7467DDF-893C-38A8-8E19-6B4E3FB10F55}.Release|x64.ActiveCfg = Release|x64 {DD652544-711E-4029-83FF-DA4A9600E6E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {DD652544-711E-4029-83FF-DA4A9600E6E7}.Debug|Any CPU.Build.0 = Debug|Any CPU {DD652544-711E-4029-83FF-DA4A9600E6E7}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -180,7 +176,7 @@ Global {6C323B05-9028-4B09-911C-3C03AE058BEE} = {AED9C836-31E3-4F3F-8ABC-929555D3F3C4} {42B45168-476D-4BFA-87B8-81A34E6295CD} = {09EADF06-BE25-4228-AB53-95AE3E15B530} {567456AD-B026-4CB6-B98D-4FC930C90223} = {D3D38B03-B557-484D-8348-8BADEE4DF592} - {CAD9DB7F-3223-3324-884D-FA2381593DA7} = {CF2C1A9E-3A8A-4329-8A6E-7880C15AAC3D} + {E7467DDF-893C-38A8-8E19-6B4E3FB10F55} = {CF2C1A9E-3A8A-4329-8A6E-7880C15AAC3D} {BB811429-0DF1-3D22-B664-09C2F5A9E0AB} = {4DB9E84D-324C-408F-87A6-246E86205540} {CF2C1A9E-3A8A-4329-8A6E-7880C15AAC3D} = {09EADF06-BE25-4228-AB53-95AE3E15B530} {D8C60CD8-8429-45F2-A755-47B6CD10FDF8} = {09EADF06-BE25-4228-AB53-95AE3E15B530} From 1ef86ffc8f1430dcd4355fd4e283820d9b5d19e9 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Jul 2025 15:30:10 +0200 Subject: [PATCH 24/41] update names --- .../TorchSharp-cuda-linux.nupkgproj | 2 +- .../TorchSharp-cuda-windows.nupkgproj | 2 +- .../libtorch-cuda-12.1-linux-x64.nupkgproj | 35 ----------------- .../libtorch-cuda-12.1-win-x64.nupkgproj | 39 ------------------- ...torch-cuda-12.8-linux-x64-part1.nupkgproj} | 0 ...-12.8-linux-x64-part2-fragment1.nupkgproj} | 0 ...da-12.8-linux-x64-part2-primary.nupkgproj} | 0 ...-12.8-linux-x64-part3-fragment1.nupkgproj} | 0 ...-12.8-linux-x64-part3-fragment2.nupkgproj} | 0 ...-12.8-linux-x64-part3-fragment3.nupkgproj} | 0 ...-12.8-linux-x64-part3-fragment4.nupkgproj} | 0 ...da-12.8-linux-x64-part3-primary.nupkgproj} | 0 ...-12.8-linux-x64-part4-fragment1.nupkgproj} | 0 ...da-12.8-linux-x64-part4-primary.nupkgproj} | 0 ...-12.8-linux-x64-part5-fragment1.nupkgproj} | 0 ...da-12.8-linux-x64-part5-primary.nupkgproj} | 0 ...torch-cuda-12.8-linux-x64-part6.nupkgproj} | 0 ...-12.8-linux-x64-part7-fragment1.nupkgproj} | 0 ...da-12.8-linux-x64-part7-primary.nupkgproj} | 0 ...torch-cuda-12.8-linux-x64-part8.nupkgproj} | 0 .../libtorch-cuda-12.8-linux-x64.nupkgproj | 35 +++++++++++++++++ ...ibtorch-cuda-12.8-win-x64-part1.nupkgproj} | 0 ...ibtorch-cuda-12.8-win-x64-part2.nupkgproj} | 0 ...da-12.8-win-x64-part3-fragment1.nupkgproj} | 0 ...cuda-12.8-win-x64-part3-primary.nupkgproj} | 0 ...ibtorch-cuda-12.8-win-x64-part4.nupkgproj} | 0 ...da-12.8-win-x64-part5-fragment1.nupkgproj} | 0 ...cuda-12.8-win-x64-part5-primary.nupkgproj} | 0 ...ibtorch-cuda-12.8-win-x64-part6.nupkgproj} | 0 ...ibtorch-cuda-12.8-win-x64-part7.nupkgproj} | 0 ...ibtorch-cuda-12.8-win-x64-part8.nupkgproj} | 0 ...da-12.8-win-x64-part9-fragment1.nupkgproj} | 0 ...da-12.8-win-x64-part9-fragment2.nupkgproj} | 0 ...cuda-12.8-win-x64-part9-primary.nupkgproj} | 0 .../libtorch-cuda-12.8-win-x64.nupkgproj | 39 +++++++++++++++++++ 35 files changed, 76 insertions(+), 76 deletions(-) delete mode 100644 pkg/libtorch-cuda-12.1-linux-x64/libtorch-cuda-12.1-linux-x64.nupkgproj delete mode 100644 pkg/libtorch-cuda-12.1-win-x64/libtorch-cuda-12.1-win-x64.nupkgproj rename pkg/{libtorch-cuda-12.1-linux-x64-part1/libtorch-cuda-12.1-linux-x64-part1.nupkgproj => libtorch-cuda-12.8-linux-x64-part1/libtorch-cuda-12.8-linux-x64-part1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part2-fragment1/libtorch-cuda-12.1-linux-x64-part2-fragment1.nupkgproj => libtorch-cuda-12.8-linux-x64-part2-fragment1/libtorch-cuda-12.8-linux-x64-part2-fragment1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part2-primary/libtorch-cuda-12.1-linux-x64-part2-primary.nupkgproj => libtorch-cuda-12.8-linux-x64-part2-primary/libtorch-cuda-12.8-linux-x64-part2-primary.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part3-fragment1/libtorch-cuda-12.1-linux-x64-part3-fragment1.nupkgproj => libtorch-cuda-12.8-linux-x64-part3-fragment1/libtorch-cuda-12.8-linux-x64-part3-fragment1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part3-fragment2/libtorch-cuda-12.1-linux-x64-part3-fragment2.nupkgproj => libtorch-cuda-12.8-linux-x64-part3-fragment2/libtorch-cuda-12.8-linux-x64-part3-fragment2.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part3-fragment3/libtorch-cuda-12.1-linux-x64-part3-fragment3.nupkgproj => libtorch-cuda-12.8-linux-x64-part3-fragment3/libtorch-cuda-12.8-linux-x64-part3-fragment3.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part3-fragment4/libtorch-cuda-12.1-linux-x64-part3-fragment4.nupkgproj => libtorch-cuda-12.8-linux-x64-part3-fragment4/libtorch-cuda-12.8-linux-x64-part3-fragment4.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part3-primary/libtorch-cuda-12.1-linux-x64-part3-primary.nupkgproj => libtorch-cuda-12.8-linux-x64-part3-primary/libtorch-cuda-12.8-linux-x64-part3-primary.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part4-fragment1/libtorch-cuda-12.1-linux-x64-part4-fragment1.nupkgproj => libtorch-cuda-12.8-linux-x64-part4-fragment1/libtorch-cuda-12.8-linux-x64-part4-fragment1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part4-primary/libtorch-cuda-12.1-linux-x64-part4-primary.nupkgproj => libtorch-cuda-12.8-linux-x64-part4-primary/libtorch-cuda-12.8-linux-x64-part4-primary.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part5-fragment1/libtorch-cuda-12.1-linux-x64-part5-fragment1.nupkgproj => libtorch-cuda-12.8-linux-x64-part5-fragment1/libtorch-cuda-12.8-linux-x64-part5-fragment1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part5-primary/libtorch-cuda-12.1-linux-x64-part5-primary.nupkgproj => libtorch-cuda-12.8-linux-x64-part5-primary/libtorch-cuda-12.8-linux-x64-part5-primary.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part6/libtorch-cuda-12.1-linux-x64-part6.nupkgproj => libtorch-cuda-12.8-linux-x64-part6/libtorch-cuda-12.8-linux-x64-part6.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part7-fragment1/libtorch-cuda-12.1-linux-x64-part7-fragment1.nupkgproj => libtorch-cuda-12.8-linux-x64-part7-fragment1/libtorch-cuda-12.8-linux-x64-part7-fragment1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part7-primary/libtorch-cuda-12.1-linux-x64-part7-primary.nupkgproj => libtorch-cuda-12.8-linux-x64-part7-primary/libtorch-cuda-12.8-linux-x64-part7-primary.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-linux-x64-part8/libtorch-cuda-12.1-linux-x64-part8.nupkgproj => libtorch-cuda-12.8-linux-x64-part8/libtorch-cuda-12.8-linux-x64-part8.nupkgproj} (100%) create mode 100644 pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj rename pkg/{libtorch-cuda-12.1-win-x64-part1/libtorch-cuda-12.1-win-x64-part1.nupkgproj => libtorch-cuda-12.8-win-x64-part1/libtorch-cuda-12.8-win-x64-part1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part2/libtorch-cuda-12.1-win-x64-part2.nupkgproj => libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part3-fragment1/libtorch-cuda-12.1-win-x64-part3-fragment1.nupkgproj => libtorch-cuda-12.8-win-x64-part3-fragment1/libtorch-cuda-12.8-win-x64-part3-fragment1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part3-primary/libtorch-cuda-12.1-win-x64-part3-primary.nupkgproj => libtorch-cuda-12.8-win-x64-part3-primary/libtorch-cuda-12.8-win-x64-part3-primary.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part4/libtorch-cuda-12.1-win-x64-part4.nupkgproj => libtorch-cuda-12.8-win-x64-part4/libtorch-cuda-12.8-win-x64-part4.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part5-fragment1/libtorch-cuda-12.1-win-x64-part5-fragment1.nupkgproj => libtorch-cuda-12.8-win-x64-part5-fragment1/libtorch-cuda-12.8-win-x64-part5-fragment1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part5-primary/libtorch-cuda-12.1-win-x64-part5-primary.nupkgproj => libtorch-cuda-12.8-win-x64-part5-primary/libtorch-cuda-12.8-win-x64-part5-primary.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part6/libtorch-cuda-12.1-win-x64-part6.nupkgproj => libtorch-cuda-12.8-win-x64-part6/libtorch-cuda-12.8-win-x64-part6.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part7/libtorch-cuda-12.1-win-x64-part7.nupkgproj => libtorch-cuda-12.8-win-x64-part7/libtorch-cuda-12.8-win-x64-part7.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part8/libtorch-cuda-12.1-win-x64-part8.nupkgproj => libtorch-cuda-12.8-win-x64-part8/libtorch-cuda-12.8-win-x64-part8.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part9-fragment1/libtorch-cuda-12.1-win-x64-part9-fragment1.nupkgproj => libtorch-cuda-12.8-win-x64-part9-fragment1/libtorch-cuda-12.8-win-x64-part9-fragment1.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part9-fragment2/libtorch-cuda-12.1-win-x64-part9-fragment2.nupkgproj => libtorch-cuda-12.8-win-x64-part9-fragment2/libtorch-cuda-12.8-win-x64-part9-fragment2.nupkgproj} (100%) rename pkg/{libtorch-cuda-12.1-win-x64-part9-primary/libtorch-cuda-12.1-win-x64-part9-primary.nupkgproj => libtorch-cuda-12.8-win-x64-part9-primary/libtorch-cuda-12.8-win-x64-part9-primary.nupkgproj} (100%) create mode 100644 pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj diff --git a/pkg/TorchSharp-cuda-linux/TorchSharp-cuda-linux.nupkgproj b/pkg/TorchSharp-cuda-linux/TorchSharp-cuda-linux.nupkgproj index c8caa6090..ad5f39b2f 100644 --- a/pkg/TorchSharp-cuda-linux/TorchSharp-cuda-linux.nupkgproj +++ b/pkg/TorchSharp-cuda-linux/TorchSharp-cuda-linux.nupkgproj @@ -7,7 +7,7 @@ - + diff --git a/pkg/TorchSharp-cuda-windows/TorchSharp-cuda-windows.nupkgproj b/pkg/TorchSharp-cuda-windows/TorchSharp-cuda-windows.nupkgproj index 04923365e..cfcf7881e 100644 --- a/pkg/TorchSharp-cuda-windows/TorchSharp-cuda-windows.nupkgproj +++ b/pkg/TorchSharp-cuda-windows/TorchSharp-cuda-windows.nupkgproj @@ -7,7 +7,7 @@ - + diff --git a/pkg/libtorch-cuda-12.1-linux-x64/libtorch-cuda-12.1-linux-x64.nupkgproj b/pkg/libtorch-cuda-12.1-linux-x64/libtorch-cuda-12.1-linux-x64.nupkgproj deleted file mode 100644 index e20fd5c60..000000000 --- a/pkg/libtorch-cuda-12.1-linux-x64/libtorch-cuda-12.1-linux-x64.nupkgproj +++ /dev/null @@ -1,35 +0,0 @@ - - - - netstandard2.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkg/libtorch-cuda-12.1-win-x64/libtorch-cuda-12.1-win-x64.nupkgproj b/pkg/libtorch-cuda-12.1-win-x64/libtorch-cuda-12.1-win-x64.nupkgproj deleted file mode 100644 index 11b41d58c..000000000 --- a/pkg/libtorch-cuda-12.1-win-x64/libtorch-cuda-12.1-win-x64.nupkgproj +++ /dev/null @@ -1,39 +0,0 @@ - - - - netstandard2.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part1/libtorch-cuda-12.1-linux-x64-part1.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part1/libtorch-cuda-12.8-linux-x64-part1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part1/libtorch-cuda-12.1-linux-x64-part1.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part1/libtorch-cuda-12.8-linux-x64-part1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part2-fragment1/libtorch-cuda-12.1-linux-x64-part2-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part2-fragment1/libtorch-cuda-12.8-linux-x64-part2-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part2-fragment1/libtorch-cuda-12.1-linux-x64-part2-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part2-fragment1/libtorch-cuda-12.8-linux-x64-part2-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part2-primary/libtorch-cuda-12.1-linux-x64-part2-primary.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part2-primary/libtorch-cuda-12.8-linux-x64-part2-primary.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part2-primary/libtorch-cuda-12.1-linux-x64-part2-primary.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part2-primary/libtorch-cuda-12.8-linux-x64-part2-primary.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part3-fragment1/libtorch-cuda-12.1-linux-x64-part3-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part3-fragment1/libtorch-cuda-12.8-linux-x64-part3-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part3-fragment1/libtorch-cuda-12.1-linux-x64-part3-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part3-fragment1/libtorch-cuda-12.8-linux-x64-part3-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part3-fragment2/libtorch-cuda-12.1-linux-x64-part3-fragment2.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part3-fragment2/libtorch-cuda-12.8-linux-x64-part3-fragment2.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part3-fragment2/libtorch-cuda-12.1-linux-x64-part3-fragment2.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part3-fragment2/libtorch-cuda-12.8-linux-x64-part3-fragment2.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part3-fragment3/libtorch-cuda-12.1-linux-x64-part3-fragment3.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part3-fragment3/libtorch-cuda-12.8-linux-x64-part3-fragment3.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part3-fragment3/libtorch-cuda-12.1-linux-x64-part3-fragment3.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part3-fragment3/libtorch-cuda-12.8-linux-x64-part3-fragment3.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part3-fragment4/libtorch-cuda-12.1-linux-x64-part3-fragment4.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part3-fragment4/libtorch-cuda-12.8-linux-x64-part3-fragment4.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part3-fragment4/libtorch-cuda-12.1-linux-x64-part3-fragment4.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part3-fragment4/libtorch-cuda-12.8-linux-x64-part3-fragment4.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part3-primary/libtorch-cuda-12.1-linux-x64-part3-primary.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part3-primary/libtorch-cuda-12.8-linux-x64-part3-primary.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part3-primary/libtorch-cuda-12.1-linux-x64-part3-primary.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part3-primary/libtorch-cuda-12.8-linux-x64-part3-primary.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part4-fragment1/libtorch-cuda-12.1-linux-x64-part4-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part4-fragment1/libtorch-cuda-12.8-linux-x64-part4-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part4-fragment1/libtorch-cuda-12.1-linux-x64-part4-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part4-fragment1/libtorch-cuda-12.8-linux-x64-part4-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part4-primary/libtorch-cuda-12.1-linux-x64-part4-primary.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part4-primary/libtorch-cuda-12.8-linux-x64-part4-primary.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part4-primary/libtorch-cuda-12.1-linux-x64-part4-primary.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part4-primary/libtorch-cuda-12.8-linux-x64-part4-primary.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part5-fragment1/libtorch-cuda-12.1-linux-x64-part5-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part5-fragment1/libtorch-cuda-12.8-linux-x64-part5-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part5-fragment1/libtorch-cuda-12.1-linux-x64-part5-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part5-fragment1/libtorch-cuda-12.8-linux-x64-part5-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part5-primary/libtorch-cuda-12.1-linux-x64-part5-primary.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part5-primary/libtorch-cuda-12.8-linux-x64-part5-primary.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part5-primary/libtorch-cuda-12.1-linux-x64-part5-primary.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part5-primary/libtorch-cuda-12.8-linux-x64-part5-primary.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part6/libtorch-cuda-12.1-linux-x64-part6.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part6/libtorch-cuda-12.8-linux-x64-part6.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part6/libtorch-cuda-12.1-linux-x64-part6.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part6/libtorch-cuda-12.8-linux-x64-part6.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part7-fragment1/libtorch-cuda-12.1-linux-x64-part7-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part7-fragment1/libtorch-cuda-12.8-linux-x64-part7-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part7-fragment1/libtorch-cuda-12.1-linux-x64-part7-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part7-fragment1/libtorch-cuda-12.8-linux-x64-part7-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part7-primary/libtorch-cuda-12.1-linux-x64-part7-primary.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part7-primary/libtorch-cuda-12.8-linux-x64-part7-primary.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part7-primary/libtorch-cuda-12.1-linux-x64-part7-primary.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part7-primary/libtorch-cuda-12.8-linux-x64-part7-primary.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-linux-x64-part8/libtorch-cuda-12.1-linux-x64-part8.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part8/libtorch-cuda-12.8-linux-x64-part8.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-linux-x64-part8/libtorch-cuda-12.1-linux-x64-part8.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part8/libtorch-cuda-12.8-linux-x64-part8.nupkgproj diff --git a/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj new file mode 100644 index 000000000..bb8b1d136 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj @@ -0,0 +1,35 @@ + + + + netstandard2.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.1-win-x64-part1/libtorch-cuda-12.1-win-x64-part1.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part1/libtorch-cuda-12.8-win-x64-part1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part1/libtorch-cuda-12.1-win-x64-part1.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part1/libtorch-cuda-12.8-win-x64-part1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part2/libtorch-cuda-12.1-win-x64-part2.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part2/libtorch-cuda-12.1-win-x64-part2.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part3-fragment1/libtorch-cuda-12.1-win-x64-part3-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part3-fragment1/libtorch-cuda-12.8-win-x64-part3-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part3-fragment1/libtorch-cuda-12.1-win-x64-part3-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part3-fragment1/libtorch-cuda-12.8-win-x64-part3-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part3-primary/libtorch-cuda-12.1-win-x64-part3-primary.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part3-primary/libtorch-cuda-12.8-win-x64-part3-primary.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part3-primary/libtorch-cuda-12.1-win-x64-part3-primary.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part3-primary/libtorch-cuda-12.8-win-x64-part3-primary.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part4/libtorch-cuda-12.1-win-x64-part4.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part4/libtorch-cuda-12.8-win-x64-part4.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part4/libtorch-cuda-12.1-win-x64-part4.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part4/libtorch-cuda-12.8-win-x64-part4.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part5-fragment1/libtorch-cuda-12.1-win-x64-part5-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part5-fragment1/libtorch-cuda-12.8-win-x64-part5-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part5-fragment1/libtorch-cuda-12.1-win-x64-part5-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part5-fragment1/libtorch-cuda-12.8-win-x64-part5-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part5-primary/libtorch-cuda-12.1-win-x64-part5-primary.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part5-primary/libtorch-cuda-12.8-win-x64-part5-primary.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part5-primary/libtorch-cuda-12.1-win-x64-part5-primary.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part5-primary/libtorch-cuda-12.8-win-x64-part5-primary.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part6/libtorch-cuda-12.1-win-x64-part6.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part6/libtorch-cuda-12.8-win-x64-part6.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part6/libtorch-cuda-12.1-win-x64-part6.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part6/libtorch-cuda-12.8-win-x64-part6.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part7/libtorch-cuda-12.1-win-x64-part7.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part7/libtorch-cuda-12.8-win-x64-part7.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part7/libtorch-cuda-12.1-win-x64-part7.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part7/libtorch-cuda-12.8-win-x64-part7.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part8/libtorch-cuda-12.1-win-x64-part8.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part8/libtorch-cuda-12.8-win-x64-part8.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part8/libtorch-cuda-12.1-win-x64-part8.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part8/libtorch-cuda-12.8-win-x64-part8.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part9-fragment1/libtorch-cuda-12.1-win-x64-part9-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part9-fragment1/libtorch-cuda-12.8-win-x64-part9-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part9-fragment1/libtorch-cuda-12.1-win-x64-part9-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part9-fragment1/libtorch-cuda-12.8-win-x64-part9-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part9-fragment2/libtorch-cuda-12.1-win-x64-part9-fragment2.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part9-fragment2/libtorch-cuda-12.8-win-x64-part9-fragment2.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part9-fragment2/libtorch-cuda-12.1-win-x64-part9-fragment2.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part9-fragment2/libtorch-cuda-12.8-win-x64-part9-fragment2.nupkgproj diff --git a/pkg/libtorch-cuda-12.1-win-x64-part9-primary/libtorch-cuda-12.1-win-x64-part9-primary.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part9-primary/libtorch-cuda-12.8-win-x64-part9-primary.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.1-win-x64-part9-primary/libtorch-cuda-12.1-win-x64-part9-primary.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part9-primary/libtorch-cuda-12.8-win-x64-part9-primary.nupkgproj diff --git a/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj new file mode 100644 index 000000000..2d71580a2 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj @@ -0,0 +1,39 @@ + + + + netstandard2.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From bba4f593b3a746ad1c6737264d72281e77f51c6d Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 14 Jul 2025 10:40:07 +0200 Subject: [PATCH 25/41] split linux cuda packages --- .../libtorch-cuda-12.8/libtorch-cuda-12.8.proj | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj index 84f21d993..790178e4f 100644 --- a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj +++ b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj @@ -112,13 +112,16 @@ - + + + - + + @@ -126,15 +129,15 @@ - + + - - - + + From a1201f8f2a377656eb58ea0106f49dcaed1b06a3 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 14 Jul 2025 11:28:27 +0200 Subject: [PATCH 26/41] attempt restitch windows packages --- .../libtorch-cuda-12.8.proj | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj index 790178e4f..8e4c49e69 100644 --- a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj +++ b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj @@ -33,30 +33,26 @@ - - - - - + + - - - + + + - @@ -64,8 +60,8 @@ - - + + @@ -75,7 +71,18 @@ - + + + + + + + + + + + + From be72ff5a3a4b2c81b1d65bb1edaa6a1d0343d94c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 14 Jul 2025 11:39:02 +0200 Subject: [PATCH 27/41] disable parallel windows cuda and linux cuda jobs --- azure-pipelines.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c5053c481..6630bb340 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,6 +13,13 @@ parameters: - name: PushPackagesToFeed type: boolean default: false + - name: BuildWindowsNuggets + type: boolean + default: true + - name: BuildLinuxNuggets + type: boolean + default: false + # Set which source branch to build libtorch-* packages. # The build-libtorch jobs are only run if the source branch is the same as this value. # The default is 'main' branch. @@ -348,7 +355,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), parameters.BuildWindowsNuggets) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -403,7 +410,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), parameters.BuildLinuxNuggets) dependsOn: - Linux_Native_Build_For_Packages variables: From ca39c835702d46f56c14ebc4ba6ec60d09d2129a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 14 Jul 2025 11:42:23 +0200 Subject: [PATCH 28/41] fix condition --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6630bb340..96cd2982b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -355,7 +355,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), parameters.BuildWindowsNuggets) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildWindowsNuggets }}', true)) dependsOn: - Windows_Native_Build_For_Packages variables: @@ -410,7 +410,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), parameters.BuildLinuxNuggets) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildLinuxNuggets }}', true)) dependsOn: - Linux_Native_Build_For_Packages variables: From 35b39a0fed35f80d623533d714e30229289620fd Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 14 Jul 2025 14:20:24 +0200 Subject: [PATCH 29/41] update packages project files --- ...uda-12.8-linux-x64-part3-fragment5.nupkgproj} | 0 ...cuda-12.8-linux-x64-part3-fragment6.nupkgproj | 15 +++++++++++++++ ...cuda-12.8-linux-x64-part5-fragment2.nupkgproj | 15 +++++++++++++++ ...cuda-12.8-linux-x64-part7-fragment2.nupkgproj | 15 +++++++++++++++ .../libtorch-cuda-12.8-linux-x64-part9.nupkgproj | 15 +++++++++++++++ .../libtorch-cuda-12.8-linux-x64.nupkgproj | 5 +++++ .../libtorch-cuda-12.8-win-x64-part10.nupkgproj | 15 +++++++++++++++ .../libtorch-cuda-12.8-win-x64-part11.nupkgproj | 15 +++++++++++++++ ...h-cuda-12.8-win-x64-part2-fragment1.nupkgproj | 15 +++++++++++++++ ...rch-cuda-12.8-win-x64-part2-primary.nupkgproj | 15 +++++++++++++++ ...h-cuda-12.8-win-x64-part5-fragment2.nupkgproj | 15 +++++++++++++++ ...-cuda-12.8-win-x64-part7-fragment1.nupkgproj} | 0 ...rch-cuda-12.8-win-x64-part7-primary.nupkgproj | 16 ++++++++++++++++ ...h-cuda-12.8-win-x64-part9-fragment3.nupkgproj | 15 +++++++++++++++ ...h-cuda-12.8-win-x64-part9-fragment4.nupkgproj | 15 +++++++++++++++ .../libtorch-cuda-12.8-win-x64.nupkgproj | 14 ++++++++++++-- .../libtorch-cuda-12.8/libtorch-cuda-12.8.proj | 2 +- 17 files changed, 199 insertions(+), 3 deletions(-) rename pkg/{libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj => libtorch-cuda-12.8-linux-x64-part3-fragment5/libtorch-cuda-12.8-linux-x64-part3-fragment5.nupkgproj} (100%) create mode 100644 pkg/libtorch-cuda-12.8-linux-x64-part3-fragment6/libtorch-cuda-12.8-linux-x64-part3-fragment6.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-linux-x64-part5-fragment2/libtorch-cuda-12.8-linux-x64-part5-fragment2.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-linux-x64-part7-fragment2/libtorch-cuda-12.8-linux-x64-part7-fragment2.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-linux-x64-part9/libtorch-cuda-12.8-linux-x64-part9.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-win-x64-part10/libtorch-cuda-12.8-win-x64-part10.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-win-x64-part11/libtorch-cuda-12.8-win-x64-part11.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-win-x64-part2-fragment1/libtorch-cuda-12.8-win-x64-part2-fragment1.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-win-x64-part2-primary/libtorch-cuda-12.8-win-x64-part2-primary.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-win-x64-part5-fragment2/libtorch-cuda-12.8-win-x64-part5-fragment2.nupkgproj rename pkg/{libtorch-cuda-12.8-win-x64-part7/libtorch-cuda-12.8-win-x64-part7.nupkgproj => libtorch-cuda-12.8-win-x64-part7-fragment1/libtorch-cuda-12.8-win-x64-part7-fragment1.nupkgproj} (100%) create mode 100644 pkg/libtorch-cuda-12.8-win-x64-part7-primary/libtorch-cuda-12.8-win-x64-part7-primary.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-win-x64-part9-fragment3/libtorch-cuda-12.8-win-x64-part9-fragment3.nupkgproj create mode 100644 pkg/libtorch-cuda-12.8-win-x64-part9-fragment4/libtorch-cuda-12.8-win-x64-part9-fragment4.nupkgproj diff --git a/pkg/libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part3-fragment5/libtorch-cuda-12.8-linux-x64-part3-fragment5.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part3-fragment5/libtorch-cuda-12.8-linux-x64-part3-fragment5.nupkgproj diff --git a/pkg/libtorch-cuda-12.8-linux-x64-part3-fragment6/libtorch-cuda-12.8-linux-x64-part3-fragment6.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part3-fragment6/libtorch-cuda-12.8-linux-x64-part3-fragment6.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-linux-x64-part3-fragment6/libtorch-cuda-12.8-linux-x64-part3-fragment6.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-linux-x64-part5-fragment2/libtorch-cuda-12.8-linux-x64-part5-fragment2.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part5-fragment2/libtorch-cuda-12.8-linux-x64-part5-fragment2.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-linux-x64-part5-fragment2/libtorch-cuda-12.8-linux-x64-part5-fragment2.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-linux-x64-part7-fragment2/libtorch-cuda-12.8-linux-x64-part7-fragment2.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part7-fragment2/libtorch-cuda-12.8-linux-x64-part7-fragment2.nupkgproj new file mode 100644 index 000000000..110fe1a7a --- /dev/null +++ b/pkg/libtorch-cuda-12.8-linux-x64-part7-fragment2/libtorch-cuda-12.8-linux-x64-part7-fragment2.nupkgproj @@ -0,0 +1,15 @@ + + + netstandard2.0 + + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-linux-x64-part9/libtorch-cuda-12.8-linux-x64-part9.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part9/libtorch-cuda-12.8-linux-x64-part9.nupkgproj new file mode 100644 index 000000000..110fe1a7a --- /dev/null +++ b/pkg/libtorch-cuda-12.8-linux-x64-part9/libtorch-cuda-12.8-linux-x64-part9.nupkgproj @@ -0,0 +1,15 @@ + + + netstandard2.0 + + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj index bb8b1d136..6e26db434 100644 --- a/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj +++ b/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj @@ -13,14 +13,19 @@ + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part10/libtorch-cuda-12.8-win-x64-part10.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part10/libtorch-cuda-12.8-win-x64-part10.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64-part10/libtorch-cuda-12.8-win-x64-part10.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part11/libtorch-cuda-12.8-win-x64-part11.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part11/libtorch-cuda-12.8-win-x64-part11.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64-part11/libtorch-cuda-12.8-win-x64-part11.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part2-fragment1/libtorch-cuda-12.8-win-x64-part2-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part2-fragment1/libtorch-cuda-12.8-win-x64-part2-fragment1.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64-part2-fragment1/libtorch-cuda-12.8-win-x64-part2-fragment1.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part2-primary/libtorch-cuda-12.8-win-x64-part2-primary.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part2-primary/libtorch-cuda-12.8-win-x64-part2-primary.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64-part2-primary/libtorch-cuda-12.8-win-x64-part2-primary.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part5-fragment2/libtorch-cuda-12.8-win-x64-part5-fragment2.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part5-fragment2/libtorch-cuda-12.8-win-x64-part5-fragment2.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64-part5-fragment2/libtorch-cuda-12.8-win-x64-part5-fragment2.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part7/libtorch-cuda-12.8-win-x64-part7.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part7-fragment1/libtorch-cuda-12.8-win-x64-part7-fragment1.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.8-win-x64-part7/libtorch-cuda-12.8-win-x64-part7.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part7-fragment1/libtorch-cuda-12.8-win-x64-part7-fragment1.nupkgproj diff --git a/pkg/libtorch-cuda-12.8-win-x64-part7-primary/libtorch-cuda-12.8-win-x64-part7-primary.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part7-primary/libtorch-cuda-12.8-win-x64-part7-primary.nupkgproj new file mode 100644 index 000000000..fef34f08b --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64-part7-primary/libtorch-cuda-12.8-win-x64-part7-primary.nupkgproj @@ -0,0 +1,16 @@ + + + + netstandard2.0 + + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part9-fragment3/libtorch-cuda-12.8-win-x64-part9-fragment3.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part9-fragment3/libtorch-cuda-12.8-win-x64-part9-fragment3.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64-part9-fragment3/libtorch-cuda-12.8-win-x64-part9-fragment3.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part9-fragment4/libtorch-cuda-12.8-win-x64-part9-fragment4.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part9-fragment4/libtorch-cuda-12.8-win-x64-part9-fragment4.nupkgproj new file mode 100644 index 000000000..bd6696258 --- /dev/null +++ b/pkg/libtorch-cuda-12.8-win-x64-part9-fragment4/libtorch-cuda-12.8-win-x64-part9-fragment4.nupkgproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + + + + + + + + + + + diff --git a/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj index 2d71580a2..7212af455 100644 --- a/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj +++ b/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj @@ -6,7 +6,9 @@ - + + + @@ -15,16 +17,24 @@ + - + + + + + + + + diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj index 8e4c49e69..e3a6c4a0f 100644 --- a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj +++ b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj @@ -39,7 +39,7 @@ - + From b71b98bbc403c454d9d3aa10e68d27eee57b4279 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 14 Jul 2025 15:49:03 +0200 Subject: [PATCH 30/41] minimize jobs --- azure-pipelines.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 96cd2982b..72f442627 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,6 +19,9 @@ parameters: - name: BuildLinuxNuggets type: boolean default: false + - name: BuildLibtorchCpu + type: boolean + default: true # Set which source branch to build libtorch-* packages. # The build-libtorch jobs are only run if the source branch is the same as this value. @@ -213,7 +216,7 @@ jobs: ################################################################################ - job: Build_TorchSharp_And_libtorch_cpu_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) + condition: eq('${{ parameters.BuildLibtorchCpu }}', true) dependsOn: - Linux_Native_Build_For_Packages - Windows_Native_Build_For_Packages @@ -358,6 +361,7 @@ jobs: condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildWindowsNuggets }}', true)) dependsOn: - Windows_Native_Build_For_Packages + - Build_TorchSharp_And_libtorch_cpu_Packages variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) @@ -413,6 +417,7 @@ jobs: condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildLinuxNuggets }}', true)) dependsOn: - Linux_Native_Build_For_Packages + - Build_TorchSharp_And_libtorch_cpu_Packages variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) From 1fe0996090deea202e5691f0198ccf25d29db306 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 14 Jul 2025 15:52:58 +0200 Subject: [PATCH 31/41] change jobs dependencies --- azure-pipelines.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 72f442627..cfb489d8e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,9 +19,6 @@ parameters: - name: BuildLinuxNuggets type: boolean default: false - - name: BuildLibtorchCpu - type: boolean - default: true # Set which source branch to build libtorch-* packages. # The build-libtorch jobs are only run if the source branch is the same as this value. @@ -216,7 +213,7 @@ jobs: ################################################################################ - job: Build_TorchSharp_And_libtorch_cpu_Packages ################################################################################ - condition: eq('${{ parameters.BuildLibtorchCpu }}', true) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}') s) dependsOn: - Linux_Native_Build_For_Packages - Windows_Native_Build_For_Packages From def759f97b0e35150e157147dd55edcea62e946b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 14 Jul 2025 15:57:25 +0200 Subject: [PATCH 32/41] change dependencies --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cfb489d8e..0ce981e19 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -213,7 +213,7 @@ jobs: ################################################################################ - job: Build_TorchSharp_And_libtorch_cpu_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}') s) + condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) dependsOn: - Linux_Native_Build_For_Packages - Windows_Native_Build_For_Packages From acdc68c5d9306d1f3525600155824909e45bd20b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 15 Jul 2025 10:19:43 +0200 Subject: [PATCH 33/41] test new approach --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0ce981e19..07d48ee8e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -355,10 +355,10 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildWindowsNuggets }}', true)) + condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildWindowsNuggets }}', true)) dependsOn: - Windows_Native_Build_For_Packages - - Build_TorchSharp_And_libtorch_cpu_Packages +- - Build_TorchSharp_And_libtorch_cpu_Packages variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) @@ -411,10 +411,10 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildLinuxNuggets }}', true)) + condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildLinuxNuggets }}', true)) dependsOn: - Linux_Native_Build_For_Packages - - Build_TorchSharp_And_libtorch_cpu_Packages + - Build_libtorch_cuda_win_Packages variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) From 1b185470843948ed78740ce374e6c14c91f54247 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 15 Jul 2025 10:20:47 +0200 Subject: [PATCH 34/41] fix yaml styling --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 07d48ee8e..023412c60 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -358,7 +358,7 @@ jobs: condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildWindowsNuggets }}', true)) dependsOn: - Windows_Native_Build_For_Packages -- - Build_TorchSharp_And_libtorch_cpu_Packages + - Build_TorchSharp_And_libtorch_cpu_Packages variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) From 4e064f604f9a6ac8e7ed1d464e29cd220d86aa8c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 15 Jul 2025 13:27:07 +0200 Subject: [PATCH 35/41] restitch windows cuda packages --- azure-pipelines.yml | 10 ++-------- .../libtorch-cuda-12.8.proj | 19 ++++++++----------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 023412c60..2ab8591fc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,12 +13,6 @@ parameters: - name: PushPackagesToFeed type: boolean default: false - - name: BuildWindowsNuggets - type: boolean - default: true - - name: BuildLinuxNuggets - type: boolean - default: false # Set which source branch to build libtorch-* packages. # The build-libtorch jobs are only run if the source branch is the same as this value. @@ -355,7 +349,7 @@ jobs: # Only run if BuildLibTorchPackages is true - job: Build_libtorch_cuda_win_Packages ################################################################################ - condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildWindowsNuggets }}', true)) + condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Windows_Native_Build_For_Packages - Build_TorchSharp_And_libtorch_cpu_Packages @@ -411,7 +405,7 @@ jobs: ################################################################################ - job: Build_libtorch_cuda_linux_Packages ################################################################################ - condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true), eq('${{ parameters.BuildLinuxNuggets }}', true)) + condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}'), eq('${{ parameters.BuildLibTorchPackages }}', true)) dependsOn: - Linux_Native_Build_For_Packages - Build_libtorch_cuda_win_Packages diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj index e3a6c4a0f..5772ab01e 100644 --- a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj +++ b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj @@ -39,8 +39,7 @@ - - + @@ -67,20 +66,18 @@ + + + + + + - - - - - - - - - + From c985303f53c8fb3a552809272eb554571f25222f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 15 Jul 2025 15:29:49 +0200 Subject: [PATCH 36/41] update cuda nuggets splits --- ...cuda-12.8-linux-x64-part7-fragment3.nupkgproj} | 2 +- ...orch-cuda-12.8-win-x64-part2-primary.nupkgproj | 15 --------------- .../libtorch-cuda-12.8-win-x64-part2.nupkgproj} | 0 ...ch-cuda-12.8-win-x64-part9-fragment4.nupkgproj | 15 --------------- .../libtorch-cuda-12.8/libtorch-cuda-12.8.proj | 5 +++-- 5 files changed, 4 insertions(+), 33 deletions(-) rename pkg/{libtorch-cuda-12.8-win-x64-part2-fragment1/libtorch-cuda-12.8-win-x64-part2-fragment1.nupkgproj => libtorch-cuda-12.8-linux-x64-part7-fragment3/libtorch-cuda-12.8-linux-x64-part7-fragment3.nupkgproj} (100%) delete mode 100644 pkg/libtorch-cuda-12.8-win-x64-part2-primary/libtorch-cuda-12.8-win-x64-part2-primary.nupkgproj rename pkg/{libtorch-cuda-12.8-win-x64-part11/libtorch-cuda-12.8-win-x64-part11.nupkgproj => libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj} (100%) delete mode 100644 pkg/libtorch-cuda-12.8-win-x64-part9-fragment4/libtorch-cuda-12.8-win-x64-part9-fragment4.nupkgproj diff --git a/pkg/libtorch-cuda-12.8-win-x64-part2-fragment1/libtorch-cuda-12.8-win-x64-part2-fragment1.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64-part7-fragment3/libtorch-cuda-12.8-linux-x64-part7-fragment3.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.8-win-x64-part2-fragment1/libtorch-cuda-12.8-win-x64-part2-fragment1.nupkgproj rename to pkg/libtorch-cuda-12.8-linux-x64-part7-fragment3/libtorch-cuda-12.8-linux-x64-part7-fragment3.nupkgproj index bd6696258..110fe1a7a 100644 --- a/pkg/libtorch-cuda-12.8-win-x64-part2-fragment1/libtorch-cuda-12.8-win-x64-part2-fragment1.nupkgproj +++ b/pkg/libtorch-cuda-12.8-linux-x64-part7-fragment3/libtorch-cuda-12.8-linux-x64-part7-fragment3.nupkgproj @@ -1,8 +1,8 @@ - netstandard2.0 + diff --git a/pkg/libtorch-cuda-12.8-win-x64-part2-primary/libtorch-cuda-12.8-win-x64-part2-primary.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part2-primary/libtorch-cuda-12.8-win-x64-part2-primary.nupkgproj deleted file mode 100644 index bd6696258..000000000 --- a/pkg/libtorch-cuda-12.8-win-x64-part2-primary/libtorch-cuda-12.8-win-x64-part2-primary.nupkgproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - netstandard2.0 - - - - - - - - - - - diff --git a/pkg/libtorch-cuda-12.8-win-x64-part11/libtorch-cuda-12.8-win-x64-part11.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj similarity index 100% rename from pkg/libtorch-cuda-12.8-win-x64-part11/libtorch-cuda-12.8-win-x64-part11.nupkgproj rename to pkg/libtorch-cuda-12.8-win-x64-part2/libtorch-cuda-12.8-win-x64-part2.nupkgproj diff --git a/pkg/libtorch-cuda-12.8-win-x64-part9-fragment4/libtorch-cuda-12.8-win-x64-part9-fragment4.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64-part9-fragment4/libtorch-cuda-12.8-win-x64-part9-fragment4.nupkgproj deleted file mode 100644 index bd6696258..000000000 --- a/pkg/libtorch-cuda-12.8-win-x64-part9-fragment4/libtorch-cuda-12.8-win-x64-part9-fragment4.nupkgproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - netstandard2.0 - - - - - - - - - - - diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj index 5772ab01e..8ff27cb75 100644 --- a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj +++ b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj @@ -79,7 +79,7 @@ - + @@ -134,7 +134,8 @@ - + + From 9f6d291019a1bceeb4fbccce5e72dbd47ba16b17 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 17 Jul 2025 13:46:28 +0200 Subject: [PATCH 37/41] add missing windows cuda dll --- Directory.Build.targets | 1 + src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj | 1 + 2 files changed, 2 insertions(+) diff --git a/Directory.Build.targets b/Directory.Build.targets index 00995f412..70c79f166 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -51,6 +51,7 @@ + diff --git a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj index 8ff27cb75..3c77c36fe 100644 --- a/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj +++ b/src/Redist/libtorch-cuda-12.8/libtorch-cuda-12.8.proj @@ -38,6 +38,7 @@ + From 80449e9580d368af03632d9ac1ddd1f21b0b0904 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 17 Jul 2025 15:38:12 +0200 Subject: [PATCH 38/41] update cuda load dll --- src/TorchSharp/Torch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TorchSharp/Torch.cs b/src/TorchSharp/Torch.cs index 104adf0a2..47a05bb2e 100644 --- a/src/TorchSharp/Torch.cs +++ b/src/TorchSharp/Torch.cs @@ -139,7 +139,7 @@ private static void LoadNativeBackend(bool useCudaBackend, out StringBuilder? tr ok = TryLoadNativeLibraryByName("cudnn_heuristic64_9.dll", typeof(torch).Assembly, trace); ok = TryLoadNativeLibraryByName("cudnn_engines_precompiled64_9.dll", typeof(torch).Assembly, trace); ok = TryLoadNativeLibraryByName("cudnn_engines_runtime_compiled64_9.dll", typeof(torch).Assembly, trace); - ok = TryLoadNativeLibraryByName("nvrtc-builtins64_121", typeof(torch).Assembly, trace); + ok = TryLoadNativeLibraryByName("nvrtc-builtins64_128", typeof(torch).Assembly, trace); ok = TryLoadNativeLibraryByName("caffe2_nvrtc", typeof(torch).Assembly, trace); ok = TryLoadNativeLibraryByName("nvrtc64_120_0", typeof(torch).Assembly, trace); } From b8e5280b6ee3ce99b394b1d0fda51d35d6dbc13b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 23 Jul 2025 16:45:11 +0200 Subject: [PATCH 39/41] fix references --- .../libtorch-cuda-12.8-linux-x64.nupkgproj | 13 +++++++++++-- .../libtorch-cuda-12.8-win-x64.nupkgproj | 6 +----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj index 6e26db434..125daab56 100644 --- a/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj +++ b/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj @@ -6,26 +6,35 @@ + - + + + + + + + + - + + diff --git a/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj b/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj index 7212af455..3f484017a 100644 --- a/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj +++ b/pkg/libtorch-cuda-12.8-win-x64/libtorch-cuda-12.8-win-x64.nupkgproj @@ -7,8 +7,7 @@ - - + @@ -30,11 +29,8 @@ - - - From 4f2dc30cd2acf6c7aead180072a40d5997219180 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 23 Jul 2025 18:44:40 +0200 Subject: [PATCH 40/41] try load multiple dlls --- src/TorchSharp/Torch.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/TorchSharp/Torch.cs b/src/TorchSharp/Torch.cs index 47a05bb2e..c59196bfe 100644 --- a/src/TorchSharp/Torch.cs +++ b/src/TorchSharp/Torch.cs @@ -142,6 +142,11 @@ private static void LoadNativeBackend(bool useCudaBackend, out StringBuilder? tr ok = TryLoadNativeLibraryByName("nvrtc-builtins64_128", typeof(torch).Assembly, trace); ok = TryLoadNativeLibraryByName("caffe2_nvrtc", typeof(torch).Assembly, trace); ok = TryLoadNativeLibraryByName("nvrtc64_120_0", typeof(torch).Assembly, trace); + ok = TryLoadNativeLibraryByName("cublasLt64_12", typeof(torch).Assembly, trace); + ok = TryLoadNativeLibraryByName("cufft64_11", typeof(torch).Assembly, trace); + ok = TryLoadNativeLibraryByName("fbgemm", typeof(torch).Assembly, trace); + ok = TryLoadNativeLibraryByName("cusparse64_12", typeof(torch).Assembly, trace); + ok = TryLoadNativeLibraryByName("cusolver64_11", typeof(torch).Assembly, trace); } ok = TryLoadNativeLibraryByName("torch_cuda", typeof(torch).Assembly, trace); From 077a32539cc472a4cdc32a0198c6b4fd7f15ded6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 25 Jul 2025 14:13:45 +0200 Subject: [PATCH 41/41] fix project package --- .../libtorch-cuda-12.8-linux-x64.nupkgproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj b/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj index 125daab56..27e159e8e 100644 --- a/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj +++ b/pkg/libtorch-cuda-12.8-linux-x64/libtorch-cuda-12.8-linux-x64.nupkgproj @@ -34,7 +34,7 @@ - +