From b027bb4fff378815d20491662bd8c2bf8d964ab7 Mon Sep 17 00:00:00 2001 From: flin Date: Tue, 20 Jun 2023 07:59:38 +0800 Subject: [PATCH] init for anolis 23 --- pytorch.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pytorch.spec b/pytorch.spec index 9c34a71..c33505e 100644 --- a/pytorch.spec +++ b/pytorch.spec @@ -93,11 +93,9 @@ BuildRequires: clang %if %{have_cuda} %if %{have_cuda_gcc} %if "%{toolchain}" == "gcc" -%if 0%{?fedora} > 34 BuildRequires: cuda-gcc-c++ %endif %endif -%endif BuildRequires: cuda-nvcc-%{vcu_maj}-%{vcu_min} BuildRequires: cuda-nvtx-%{vcu_maj}-%{vcu_min} BuildRequires: cuda-cupti-%{vcu_maj}-%{vcu_min} @@ -114,7 +112,6 @@ BuildRequires: libcusolver-devel-%{vcu_maj}-%{vcu_min} BuildRequires: libnvjitlink-devel-%{vcu_maj}-%{vcu_min} BuildRequires: libnccl-devel BuildRequires: libcudnn8-devel -BuildRequires: gloo-devel %if %{use_magma} BuildRequires: magma-devel %endif @@ -129,6 +126,8 @@ Requires: libcusolver-%{vcu_maj}-%{vcu_min} Requires: libnvjitlink-%{vcu_maj}-%{vcu_min} %endif +BuildRequires: gloo-devel + %if %{have_tensorrt} BuildRequires: libnvinfer-plugin-devel libnvonnxparsers-devel %endif -- Gitee