AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
143.89k stars 27.06k forks source link

[Bug]: Arch AMD guide does not work #9006

Open RenaKunisaki opened 1 year ago

RenaKunisaki commented 1 year ago

Is there an existing issue for this?

What happened?

I'm trying to follow the guide: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs#install-on-amd-and-arch-linux

but I got an error about CUDA_HOME not being set. So I installed cuda (even though that seems to be for nvidia...) and set CUDA_HOME=/opt/cuda, and now it fails:

The detected CUDA version (12.1) mismatches the version that was used to compile PyTorch (11.7). Please make sure to use the same CUDA versions.

Steps to reproduce the problem

  1. Follow the instructions

What should have happened?

Finally having this silly thing working after a week of trying everything

Commit where the problem happens

4c1ad743e3baf1246db0711aa0107debf036a12b

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

List of extensions

No

Console logs

rena@greymon:…/ai/stable-diffusion-webui> trizen -S python-pytorch-opt-rocm
:: Pacman command: /usr/bin/sudo /usr/bin/pacman -S python-pytorch-opt-rocm
[sudo] password for rena: 
resolving dependencies...
looking for conflicting packages...
:: python-pytorch-opt-rocm and python-pytorch-rocm are in conflict (python-pytorch). Remove python-pytorch-rocm? [y/N] y

Packages (2) python-pytorch-rocm-1.13.1-2 [removal]  python-pytorch-opt-rocm-1.13.1-2

Total Download Size:    128.73 MiB
Total Installed Size:  1369.37 MiB
Net Upgrade Size:         4.63 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 python-pytorch-opt-rocm-1.13.1-2-x86_64            128.7 MiB  6.83 MiB/s 00:19 [---------------------------------------------] 100%
(1/1) checking keys in keyring                                                  [---------------------------------------------] 100%
(1/1) checking package integrity                                                [---------------------------------------------] 100%
(1/1) loading package files                                                     [---------------------------------------------] 100%
(1/1) checking for file conflicts                                               [---------------------------------------------] 100%
(2/2) checking available disk space                                             [---------------------------------------------] 100%
:: Processing package changes...
(1/1) removing python-pytorch-rocm                                              [---------------------------------------------] 100%
(1/1) installing python-pytorch-opt-rocm                                        [---------------------------------------------] 100%

rena@greymon:…/ai/stable-diffusion-webui> trizen -S python-pytorch-rocm
:: Pacman command: /usr/bin/sudo /usr/bin/pacman -S python-pytorch-rocm
resolving dependencies...
looking for conflicting packages...
:: python-pytorch-rocm and python-pytorch-opt-rocm are in conflict (python-pytorch). Remove python-pytorch-opt-rocm? [y/N] ^C
Interrupt signal received

=>> Try again? [Y/n]: ^C
 *** Process killed by signal 2

rena@greymon:…/ai/stable-diffusion-webui> trizen -S python-torchvision-rocm
:: Pulling AUR changes: python-torchvision-rocm

--------------------------------------------------------------------------------
:: Content of /home/rena/.config/trizen/sources/python-torchvision-rocm/PKGBUILD
--------------------------------------------------------------------------------

# Maintainer: wuxxin <wuxxin@gmail.com>
# Based on python-torchvision; original contributors:
# Contributor: Konstantin Gizdov <arch at kge dot pw>
# Contributor: Butui Hu <hot123tea123@gmail.com>
# Contributor: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: Jean Lucas <jean@4ray.co>
# Based on python-torchvision-git; original contributors:
# Contributor: Stephen Zhang <zsrkmyn at gmail dot com>

_pkgname='vision'
pkgbase='python-torchvision-rocm'
pkgname=('torchvision-rocm' 'python-torchvision-rocm')
pkgver=0.14.1
pkgrel=3
pkgdesc='Datasets, transforms, and models specific to computer vision (with ROCM support)'
arch=('x86_64')
url='https://github.com/pytorch/vision'
license=('BSD')
depends=(
  python-numpy
  python-pillow
  python-requests
  python-scipy
  python-typing_extensions
  python-pytorch-rocm
  ffmpeg4.4
  libjpeg-turbo
  libpng
)
optdepends=(
  'python-pycocotools: support for MS-COCO dataset'
)
makedepends=(
  cmake
  ninja
  rocm-hip-sdk
  python-setuptools
  qt5-base
  miopen-hip
)
source=(
  "${_pkgname}-${pkgver}.tar.gz::https://github.com/pytorch/vision/archive/v${pkgver}.tar.gz"
)
sha512sums=(
  '08fb1e35da1c3f1d0446ef879d9b6a7ae839a5137c3b5b46ef8111c2ae890299e2b555d1bd3b3d61f96b8778b831d8f895487cf8a4e36e371fcd4b8acda67d1f'
)

prepare() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  # fix building with ffmpeg4.4 by manually setup include and lib dir
  # and remove other codes to find ffmpeg exe, as ffmpeg4.4 are only headers and libs without ffmpeg cmd
  sed -e 's#ffmpeg_include_dir = os.path.join(ffmpeg_root, "include")#ffmpeg_include_dir = "/usr/include/ffmpeg4.4"#' \
    -e 's#ffmpeg_library_dir = os.path.join(ffmpeg_root, "lib")#ffmpeg_library_dir = "/usr/lib/ffmpeg4.4"#' \
    -e 's#has_ffmpeg = ffmpeg_exe is not None#has_ffmpeg = True#' \
    -e '/ffmpeg_exe/d' \
    -e '/ffmpeg_bin/d' \
    -e '/ffmpeg_root/d' \
    -i setup.py
}

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  if test -e build; then rm -rf build; fi
  mkdir build
  cd build

  # populate build architecture list if not set with defaults taken from
  # arch:community:python-pytorch-rocm@1.13.1
  if test -n "$PYTORCH_ROCM_ARCH"; then
    export PYTORCH_ROCM_ARCH="$PYTORCH_ROCM_ARCH"
  else
    export PYTORCH_ROCM_ARCH="gfx803;gfx900;gfx906;gfx908;gfx90a;gfx1030"
  fi

  cmake "../" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_CXX_FLAGS="${CXXFLAGS} -O3" \
    -DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
    -DWITH_PNG=ON \
    -DWITH_JPEG=ON
  make

  # fix bin/hipcc not found, because ROCM_HOME is lost
  # https://github.com/pytorch/vision/issues/6707#issuecomment-1269640873
  cd "${srcdir}/${_pkgname}-${pkgver}"
  FORCE_CUDA=1 \
    ROCM_HOME=/opt/rocm/ \
    TORCHVISION_INCLUDE=${srcdir} \
    TORCHVISION_LIBRARY=/usr/lib \
    TORCHVISION_USE_NVJPEG=0 \
    TORCHVISION_USE_VIDEO_CODEC=0 \
    TORCHVISION_USE_FFMPEG=1 \
    python setup.py build
}

check() {
  local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
  # check if VideoReader is build
  # VideoReader depends on ffmpeg
  cd "${srcdir}/${_pkgname}-${pkgver}"
  PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-cpython-${python_version}" \
    python -c "from torchvision.io import VideoReader"
}

package_torchvision-rocm() {
  pkgdesc='Datasets, transforms, and models specific to computer vision (C++ library only, with ROCM support)'
  provides+=(torchvision)
  conflicts+=(torchvision)

  cd "${srcdir}/${_pkgname}-${pkgver}"
  make -C build install DESTDIR="$pkgdir"
  install -m644 -Dt "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

package_python-torchvision-rocm() {
  pkgdesc='Datasets, transforms, and models specific to computer vision (with ROCM support)'
  provides+=(python-torchvision)
  conflicts+=(python-torchvision)

  cd "${srcdir}/${_pkgname}-${pkgver}"
  # fix bin/hipcc not found, because ROCM_HOME is lost
  FORCE_CUDA=1 \
    ROCM_HOME=/opt/rocm/ \
    TORCHVISION_INCLUDE=${srcdir} \
    TORCHVISION_LIBRARY=/usr/lib \
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

=>> Edit python-torchvision-rocm/PKGBUILD? [y/N]: 

Repository      : AUR
Name            : python-torchvision-rocm
Version         : 0.14.1-3
Maintainer      : wuxxin
URL             : https://github.com/pytorch/vision
AUR URL         : https://aur.archlinux.org/packages/python-torchvision-rocm
License         : BSD
Votes           : 0
Popularity      : 0%
Installed       : No
Out Of Date     : No
Depends On      : python-numpy
                  python-pillow
                  python-requests
                  python-scipy
                  python-typing_extensions
                  python-pytorch-rocm
                  ffmpeg4.4
                  libjpeg-turbo
                  libpng
Make Deps       : cmake
                  ninja
                  rocm-hip-sdk
                  python-setuptools
                  qt5-base
                  miopen-hip
Check Deps      : None
Optional Deps   : python-pycocotools: support for MS-COCO dataset
Provides        : python-torchvision
Conflicts With  : python-torchvision
Replaces        : None
Package Base    : python-torchvision-rocm
Last Update     : Tue Feb 21 08:08:50 2023
Description     : Datasets, transforms, and models specific to computer vision (with ROCM support)

==> Making package: python-torchvision-rocm 0.14.1-3 (Sun 26 Mar 2023 03:27:27 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found vision-0.14.1.tar.gz
==> Validating source files with sha512sums...
    vision-0.14.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting vision-0.14.1.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Caffe2: Found gflags with new-style gflags target.
-- Caffe2: Found glog with new-style glog target.
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13")  
-- Caffe2: Found protobuf with new-style protobuf targets.
-- Caffe2: Protobuf version 3.21.12.0
Building PyTorch for GPU arch: gfx803;gfx900;gfx906;gfx908;gfx90a;gfx1030
-- Found HIP: /opt/rocm/hip (found suitable version "5.4.22804-", minimum required is "1.0") 
HIP VERSION: 5.4.22804-
-- Caffe2: Header version is: 5.4.3

***** ROCm version from rocm_version.h ****

ROCM_VERSION_DEV: 5.4.3
ROCM_VERSION_DEV_MAJOR: 5
ROCM_VERSION_DEV_MINOR: 4
ROCM_VERSION_DEV_PATCH: 3
ROCM_VERSION_DEV_INT:   50403
HIP_VERSION_MAJOR: 5
HIP_VERSION_MINOR: 4
TORCH_HIP_VERSION: 504

***** Library versions from dpkg *****

***** Library versions from cmake find_package *****

-- hip::amdhip64 is SHARED_LIBRARY
hip VERSION: 5.4.0
hsa-runtime64 VERSION: 1.7.0
amd_comgr VERSION: 2.4.0
-- hip::amdhip64 is SHARED_LIBRARY
rocrand VERSION: 2.10.9
hiprand VERSION: 2.10.9
rocblas VERSION: 2.46.0
miopen VERSION: 2.19.0
hipfft VERSION: 1.0.10
hipsparse VERSION: 2.3.3
-- hip::amdhip64 is SHARED_LIBRARY
rccl VERSION: 2.13.4
rocprim VERSION: 2.10.9
hipcub VERSION: 2.10.12
rocthrust VERSION: 2.10.9
ROCm version >= 4.1; kernel asserts are disabled
HIP library name: amdhip64
CMake Warning at /usr/lib/cmake/Torch/TorchConfig.cmake:22 (message):
  static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
  /usr/lib/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
  CMakeLists.txt:23 (find_package)

-- Found Torch: /usr/lib/libtorch.so  
-- Found PNG: /usr/lib/libpng.so (found version "1.6.39") 
-- Found JPEG: /usr/lib/libjpeg.so (found version "80") 
-- Configuring done (0.7s)
-- Generating done (0.0s)
-- Build files have been written to: /home/rena/.config/trizen/sources/python-torchvision-rocm/src/vision-0.14.1/build
[  3%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/cpu/common_jpeg.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[  7%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/cpu/decode_image.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 10%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/cpu/decode_jpeg.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 14%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/cpu/decode_png.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 17%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/cpu/encode_jpeg.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 21%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/cpu/encode_png.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 25%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/cpu/read_write_file.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 28%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/cuda/decode_jpeg_cuda.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 32%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/io/image/image.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 35%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 39%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/autograd/ps_roi_align_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 42%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/autograd/ps_roi_pool_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 46%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/autograd/roi_align_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 50%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/autograd/roi_pool_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 53%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 57%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/cpu/nms_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 60%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/cpu/ps_roi_align_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 64%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/cpu/ps_roi_pool_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 67%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/cpu/roi_align_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 71%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/cpu/roi_pool_kernel.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 75%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/deform_conv2d.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 78%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/nms.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 82%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/ps_roi_align.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 85%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/ps_roi_pool.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 89%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/roi_align.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 92%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/ops/roi_pool.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[ 96%] Building CXX object CMakeFiles/torchvision.dir/torchvision/csrc/vision.cpp.o
cc1plus: warning: command-line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
In file included from /home/rena/.config/trizen/sources/python-torchvision-rocm/src/vision-0.14.1/torchvision/csrc/vision.cpp:1:
/home/rena/.config/trizen/sources/python-torchvision-rocm/src/vision-0.14.1/torchvision/csrc/vision.h:10:40: warning: ‘_register_ops’ initialized and declared ‘extern’
   10 | extern "C" VISION_INLINE_VARIABLE auto _register_ops = &cuda_version;
      |                                        ^~~~~~~~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-implicit-int-float-conversion’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
[100%] Linking CXX shared library libtorchvision.so
[100%] Built target torchvision
No ROCm runtime is found, using ROCM_HOME='/opt/rocm/'
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
Building wheel torchvision-0.14.1a0+b66f7ed
Compiling extensions with following flags:
  FORCE_CUDA: True
  DEBUG: False
  TORCHVISION_USE_PNG: True
  TORCHVISION_USE_JPEG: True
  TORCHVISION_USE_NVJPEG: False
  TORCHVISION_USE_FFMPEG: True
  TORCHVISION_USE_VIDEO_CODEC: False
  NVCC_FLAGS: 
Found PNG library
Building torchvision with PNG image support
  libpng version: 1.6.39
  libpng include path: /usr/include/libpng16
Running build on conda-build: False
Running build on conda: False
Building torchvision with JPEG image support
Building torchvision without NVJPEG image support
Building torchvision with ffmpeg support
  ffmpeg version: b'ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers\nbuilt with gcc 12.2.1 (GCC) 20230201\nconfiguration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan\nlibavutil      58.  2.100 / 58.  2.100\nlibavcodec     60.  3.100 / 60.  3.100\nlibavformat    60.  3.100 / 60.  3.100\nlibavdevice    60.  1.100 / 60.  1.100\nlibavfilter     9.  3.100 /  9.  3.100\nlibswscale      7.  1.100 /  7.  1.100\nlibswresample   4. 10.100 /  4. 10.100\nlibpostproc    57.  1.100 / 57.  1.100\n'
  ffmpeg include path: ['/usr/include/ffmpeg4.4']
  ffmpeg library_dir: ['/usr/lib/ffmpeg4.4']
Building torchvision without video codec support
/usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
running build
running build_py
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/torchvision
copying torchvision/extension.py -> build/lib.linux-x86_64-cpython-310/torchvision
copying torchvision/utils.py -> build/lib.linux-x86_64-cpython-310/torchvision
copying torchvision/_internally_replaced_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision
copying torchvision/version.py -> build/lib.linux-x86_64-cpython-310/torchvision
copying torchvision/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision
copying torchvision/_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision
creating build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/shufflenetv2.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/inception.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/regnet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/mobilenetv3.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/_api.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/mobilenetv2.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/feature_extraction.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/swin_transformer.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/mnasnet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/vgg.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/googlenet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/efficientnet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/mobilenet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/squeezenet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/densenet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/alexnet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/maxvit.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/vision_transformer.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/convnext.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/_meta.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
copying torchvision/models/resnet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models
creating build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/svhn.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/video_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/places365.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/widerface.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/pcam.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/sun397.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/dtd.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/kitti.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/lfw.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/phototour.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/stanford_cars.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/coco.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/vision.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/mnist.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/eurosat.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/stl10.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/fakedata.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/rendered_sst2.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/country211.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/ucf101.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/clevr.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/oxford_iiit_pet.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/fgvc_aircraft.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/food101.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/sbd.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/sbu.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/semeion.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/imagenet.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/cityscapes.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/gtsrb.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/_stereo_matching.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/folder.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/flowers102.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/fer2013.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/usps.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/voc.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/inaturalist.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/flickr.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/kinetics.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/omniglot.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/lsun.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/hmdb51.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/celeba.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/_optical_flow.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/cifar.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
copying torchvision/datasets/caltech.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets
creating build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/roi_pool.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/poolers.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/boxes.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/feature_pyramid_network.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/_register_onnx_ops.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/ps_roi_pool.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/_box_convert.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/focal_loss.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/deform_conv.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/ps_roi_align.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/giou_loss.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/ciou_loss.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/roi_align.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/diou_loss.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/drop_block.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/misc.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
copying torchvision/ops/stochastic_depth.py -> build/lib.linux-x86_64-cpython-310/torchvision/ops
creating build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/_transforms_video.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/functional_pil.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/_functional_video.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/transforms.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/autoaugment.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/_presets.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/functional_tensor.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/functional.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
copying torchvision/transforms/_pil_constants.py -> build/lib.linux-x86_64-cpython-310/torchvision/transforms
creating build/lib.linux-x86_64-cpython-310/torchvision/io
copying torchvision/io/video.py -> build/lib.linux-x86_64-cpython-310/torchvision/io
copying torchvision/io/image.py -> build/lib.linux-x86_64-cpython-310/torchvision/io
copying torchvision/io/_load_gpu_decoder.py -> build/lib.linux-x86_64-cpython-310/torchvision/io
copying torchvision/io/_video_opt.py -> build/lib.linux-x86_64-cpython-310/torchvision/io
copying torchvision/io/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/io
copying torchvision/io/video_reader.py -> build/lib.linux-x86_64-cpython-310/torchvision/io
creating build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/image_list.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/fcos.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/roi_heads.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/mask_rcnn.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/transform.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/backbone_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/rpn.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/faster_rcnn.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/anchor_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/ssdlite.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/keypoint_rcnn.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/retinanet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/generalized_rcnn.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
copying torchvision/models/detection/ssd.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/detection
creating build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/shufflenetv2.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/inception.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/mobilenetv3.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/mobilenetv2.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/googlenet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/mobilenet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
copying torchvision/models/quantization/resnet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/quantization
creating build/lib.linux-x86_64-cpython-310/torchvision/models/video
copying torchvision/models/video/mvit.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/video
copying torchvision/models/video/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/video
copying torchvision/models/video/resnet.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/video
copying torchvision/models/video/s3d.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/video
creating build/lib.linux-x86_64-cpython-310/torchvision/models/segmentation
copying torchvision/models/segmentation/fcn.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/segmentation
copying torchvision/models/segmentation/lraspp.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/segmentation
copying torchvision/models/segmentation/deeplabv3.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/segmentation
copying torchvision/models/segmentation/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/segmentation
copying torchvision/models/segmentation/_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/segmentation
creating build/lib.linux-x86_64-cpython-310/torchvision/models/optical_flow
copying torchvision/models/optical_flow/raft.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/optical_flow
copying torchvision/models/optical_flow/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/optical_flow
copying torchvision/models/optical_flow/_utils.py -> build/lib.linux-x86_64-cpython-310/torchvision/models/optical_flow
creating build/lib.linux-x86_64-cpython-310/torchvision/datasets/samplers
copying torchvision/datasets/samplers/clip_sampler.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets/samplers
copying torchvision/datasets/samplers/__init__.py -> build/lib.linux-x86_64-cpython-310/torchvision/datasets/samplers
running build_ext
Traceback (most recent call last):
  File "/home/rena/.config/trizen/sources/python-torchvision-rocm/src/vision-0.14.1/setup.py", line 527, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 108, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
    super().run_command(command)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
    super().run_command(command)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run
    _build_ext.run(self)
  File "/usr/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
  File "/home/rena/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 499, in build_extensions
    _check_cuda_version(compiler_name, compiler_version)
  File "/home/rena/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 386, in _check_cuda_version
    raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda))
RuntimeError: 
The detected CUDA version (12.1) mismatches the version that was used to compile
PyTorch (11.7). Please make sure to use the same CUDA versions.

==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build python-torchvision-rocm - makepkg exited with code: 4

Additional information

No response

PoisonedHive commented 1 year ago

I'm also having pretty much the same error all the time whenever I follow the installation process. Have you been able to get past this hurdle or found a workaround with a different project?