Public bug reported:

Hello,

I was digging around for pytorch-rocm myself and found these log
messages indicating ROCM is not really enabled in this build.

```
  --
  -- ******** Summary ********
  -- General:
  --   CMake version         : 4.2.3
  --   CMake command         : /usr/bin/cmake
  --   System                : Linux
  --   C++ compiler          : /usr/bin/c++
  --   C++ compiler id       : GNU
  --   C++ compiler version  : 15.2.0
  --   Using ccache if found : ON
  --   Found ccache          : CCACHE_PROGRAM-NOTFOUND
  --   CXX flags             : -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/pytorch-rocm-2.9.1+dfsg-1~exp2ubuntu1
 -gsplit-dwarf -Wno-dangling-reference  -I/usr -fvisibility-inlines-hidden 
-DUSE_PTHREADPOOL -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER 
-DLIBKINETO_NOXPUPTI=ON -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN 
-DUSE_VULKAN_API -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED 
-Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor 
-Werror=range-loop-construct -Werror=bool-operation -Wnarrowing 
-Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter 
-Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow 
-Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new 
-Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format 
-Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow
  --   Shared LD flags       : -Wl,-Bsymbolic-functions 
-Wl,--package-metadata=%7B%22type%22:%22deb%22%2C%22os%22:%22ubuntu%22%2C%22name%22:%22pytorch-rocm%22%2C%22version%22:%222.9.1+dfsg-1~exp2ubuntu1%22%2C%22architecture%22:%22amd64%22%7D
 -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -Wl,--no-as-needed 
-Wl,-Bsymbolic-functions 
-Wl,--package-metadata=%7B%22type%22:%22deb%22%2C%22os%22:%22ubuntu%22%2C%22name%22:%22pytorch-rocm%22%2C%22version%22:%222.9.1+dfsg-1~exp2ubuntu1%22%2C%22architecture%22:%22amd64%22%7D
 -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -rdynamic
  --   Static LD flags       :
  --   Module LD flags       : -Wl,-Bsymbolic-functions 
-Wl,--package-metadata=%7B%22type%22:%22deb%22%2C%22os%22:%22ubuntu%22%2C%22name%22:%22pytorch-rocm%22%2C%22version%22:%222.9.1+dfsg-1~exp2ubuntu1%22%2C%22architecture%22:%22amd64%22%7D
 -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now
  --   Build type            : RelWithDebInfo
  --   Compile definitions   : 
TORCH_ENABLE_LLVM;ONNX_ML=1;ONNXIFI_ENABLE_EXT=1;ONNX_NAMESPACE=onnx;DNNL_EXPERIMENTAL_UKERNEL;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1;USE_EXTERNAL_MZCRC;MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
  --   CMAKE_PREFIX_PATH     : /usr/lib/python3/dist-packages;/usr
  --   CMAKE_INSTALL_PREFIX  : /<<PKGBUILDDIR>>/torch
  --   USE_GOLD_LINKER       : OFF
  --
  --   TORCH_VERSION         : 2.9.1
  --   BUILD_STATIC_RUNTIME_BENCHMARK: OFF
  --   BUILD_BINARY          : OFF
  --   BUILD_CUSTOM_PROTOBUF : OFF
  --     Protobuf compiler   : /usr/bin/protoc
  --     Protobuf includes   : /usr/include
  --     Protobuf libraries  : /usr/lib/x86_64-linux-gnu/libprotobuf.so
  --   BUILD_PYTHON          : True
  --     Python version      : 3.14.3
  --     Python executable   : /usr/bin/python3.14
  --     Python library      :
  --     Python includes     : /usr/include/python3.14
  --     Python site-package : /usr/lib/python3/dist-packages
  --   BUILD_SHARED_LIBS     : ON
  --   CAFFE2_USE_MSVC_STATIC_RUNTIME     : OFF
  --   BUILD_TEST            : True
  --   BUILD_JNI             : OFF
  --   BUILD_MOBILE_AUTOGRAD : OFF
  --   BUILD_LITE_INTERPRETER: OFF
  --   INTERN_BUILD_MOBILE   :
  --   TRACING_BASED         : OFF
  --   USE_BLAS              : 1
  --     BLAS                : generic
  --     BLAS_HAS_SBGEMM     :
  --   USE_LAPACK            : 1
  --     LAPACK              : generic
  --   USE_ASAN              : OFF
  --   USE_TSAN              : OFF
  --   USE_CPP_CODE_COVERAGE : OFF
  --   USE_CUDA              : OFF
  --   USE_XPU               : OFF
  --   USE_ROCM              : OFF
  --   BUILD_NVFUSER         :
  --   USE_EIGEN_FOR_BLAS    :
  --   USE_EIGEN_FOR_SPARSE  : OFF
  --   USE_FBGEMM            : OFF
  --   USE_KINETO            : ON
  --   USE_GFLAGS            : OFF
  --   USE_GLOG              : OFF
  --   USE_LITE_PROTO        : OFF
  --   USE_PYTORCH_METAL     : OFF
  --   USE_PYTORCH_METAL_EXPORT     : OFF
  --   USE_MPS               : OFF
  --   CAN_COMPILE_METAL     :
  --   USE_MKL               :
  --   USE_MKLDNN            : ON
  --   USE_MKLDNN_ACL        : OFF
  --   USE_MKLDNN_CBLAS      : OFF
  --   USE_UCC               : OFF
  --   USE_ITT               : OFF
  --   USE_XCCL              : OFF
  --   USE_NCCL              : OFF
  --   Found NVSHMEM         :
  --   USE_NNPACK            : OFF
  --   USE_NUMPY             : ON
  --   USE_OBSERVERS         : ON
  --   USE_OPENCL            : OFF
  --   USE_OPENMP            : ON
  --   USE_MIMALLOC          : OFF
  --   USE_VULKAN            : 1
  --     USE_VULKAN_FP16_INFERENCE    : OFF
  --     USE_VULKAN_RELAXED_PRECISION : OFF
  --   USE_PROF              : OFF
  --   USE_PYTORCH_QNNPACK   : ON
  --   USE_XNNPACK           : ON
  --   USE_DISTRIBUTED       : ON
  --     USE_MPI               : ON
  --     USE_GLOO              : ON
  --     USE_GLOO_WITH_OPENSSL : OFF
  --     USE_GLOO_IBVERBS      : OFF
  --     USE_TENSORPIPE        : ON
  --   Public Dependencies  :
  --   Private Dependencies : 
Threads::Threads;/usr/lib/x86_64-linux-gnu/libblas.so;pthreadpool;cpuinfo;pytorch_qnnpack;XNNPACK;microkernels-prod;/usr/lib/x86_64-linux-gnu/libvulkan.so;fp16;caffe2::openmp;tensorpipe;gloo;onnx_proto;onnx;rt;kineto;gcc_s;gcc;dl
  --   Public CUDA Deps.    :
  --   Private CUDA Deps.   :
  --   USE_COREML_DELEGATE     : OFF
  --   BUILD_LAZY_TS_BACKEND   : ON
  --   USE_ROCM_KERNEL_ASSERT : OFF
  -- Performing Test HAS_WMISSING_PROTOTYPES
  -- Performing Test HAS_WMISSING_PROTOTYPES - Failed
  -- Performing Test HAS_WERROR_MISSING_PROTOTYPES
  -- Performing Test HAS_WERROR_MISSING_PROTOTYPES - Failed
```
ref: 
https://launchpadlibrarian.net/851059834/buildlog_ubuntu-resolute-amd64.pytorch-rocm_2.9.1+dfsg-1~exp2ubuntu1_BUILDING.txt.gz

** Affects: pytorch-rocm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144078

Title:
  this doesnt seem to be building for ROCm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pytorch-rocm/+bug/2144078/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to