Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 2 KB

README.md

File metadata and controls

69 lines (42 loc) · 2 KB

Patches for ubuntu-22.04

中文版

Date: 2022-07-01

software description
OS Ubuntu-20.04.4
Python 3.8.10
ROCm 5.2.0
hardware Product Name ISA CHIP IP
CPU Xeon 2620v3
GPU RX580 8G gfx803(Polaris10) 0x67df

The ubuntu-22.04 patches put in the patch directory, with ubuntu2204 in file name. https://github.com/xuhuisheng/rocm-build/blob/develop/patch

ROCm-5.1.3 cannot install properly on ubuntu-22.04. We need some patches. Some patches comes from ROCm-5.2 develop branch.

The main different parts.

# ubuntu-20.04 ubuntu-22.04
1 gcc-9 gcc-11 many components
2 python-3.8 python-3.10 tensorflow, pytorch
3 fmt-6 fmt-8 rocSOLVER

18.hip

  • comment out thread header. No idea why this caused miopen native_conv.cpp error
  • comment out complex, new header. No idea why this caused miopen native_conv.cpp error

23.rocprim

  • add thread header. because of hip modification

33.roctracer

  • (ROCm-5.2.0 already fix this)
  • replace pthread_yield to sched_yield for strict check

51.rocsolver

73.rocmvalidationsuite


miopen depends boost-1.72.0. We need remove PTHREAD_STACK_MIN related lines from boost/thread/pthread/thread_data.hpp


The breakpad from tensorflow throw a compiling error about max(int, long int) type cast.


The pytorch need compile with USE_ROCM=1 USE_NUMPY=1 ROCM_VERSION=50103 python3 setup.py bdist_wheel