[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1031538: marked as done (libamdhip64-dev: find_package(hip) requires additional packages)



Your message dated Sun, 19 Feb 2023 18:05:20 +0000
with message-id <E1pTo3s-00Ee22-Ie@fasolo.debian.org>
and subject line Bug#1031538: fixed in rocm-hipamd 5.2.3-5
has caused the Debian Bug report #1031538,
regarding libamdhip64-dev: find_package(hip) requires additional packages
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1031538: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031538
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libamdhip64-dev
Version: 5.2.3-4
Severity: normal
X-Debbugs-Cc: cgmb@slerp.xyz

Dear Maintainer,

The dependencies for libhipamd64-dev appear to be underspecified.

main.cpp:

    #include <hip/hip_runtime.h>
    #include <stdio.h>
    
    #define CHECK_HIP(expr) do {              \
      hipError_t result = (expr);             \
      if (result != hipSuccess) {             \
        fprintf(stderr, "%s:%d: %s (%d)\n",   \
          __FILE__, __LINE__,                 \
          hipGetErrorString(result), result); \
        exit(EXIT_FAILURE);                   \
      }                                       \
    } while(0)
    
    __global__ void sq_arr(float *arr, int n) {
      int tid = blockDim.x*blockIdx.x + threadIdx.x;
      if (tid < n) {
        arr[tid] = arr[tid] * arr[tid];
      }
    }
    
    int main() {
      enum { N = 5 };
      float hArr[N] = { 1, 2, 3, 4, 5 };
      float *dArr;
      CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N));
      CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice));
      sq_arr<<<dim3(1), dim3(32,1,1), 0, 0>>>(dArr, N);
      CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost));
      for (int i = 0; i < N; ++i) {
        printf("%f\n", hArr[i]);
      }
      CHECK_HIP(hipFree(dArr));
      return 0;
    }

CMakeLists.txt:

    cmake_minimum_required(VERSION 3.22)
    project(example LANGUAGES CXX)
    
    find_package(hip REQUIRED)
    
    add_executable(ex main.cpp)
    target_link_libraries(ex hip::device)

Build log:

    # CXX=hipcc cmake -S. -Bbuild
    -- The CXX compiler identification is Clang 15.0.7
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/hipcc - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    CMake Error at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
      By not providing "Findamd_comgr.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "amd_comgr", but CMake did not find one.
    
      Could not find a package configuration file provided by "amd_comgr" with
      any of the following names:
    
        amd_comgrConfig.cmake
        amd_comgr-config.cmake
    
      Add the installation prefix of "amd_comgr" to CMAKE_PREFIX_PATH or set
      "amd_comgr_DIR" to a directory containing one of the above files.  If
      "amd_comgr" provides a separate development package or SDK, be sure it has
      been installed.
    Call Stack (most recent call first):
      /usr/lib/x86_64-linux-gnu/cmake/hip/hip-config.cmake:206 (find_dependency)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!

Build log after `apt install libamd-comgr-dev`:

    # CXX=hipcc cmake -S. -Bbuild
    -- The CXX compiler identification is Clang 15.0.7
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/hipcc - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    CMake Error at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
      By not providing "Findhsa-runtime64.cmake" in CMAKE_MODULE_PATH this
      project has asked CMake to find a package configuration file provided by
      "hsa-runtime64", but CMake did not find one.
    
      Could not find a package configuration file provided by "hsa-runtime64"
      with any of the following names:
    
        hsa-runtime64Config.cmake
        hsa-runtime64-config.cmake
    
      Add the installation prefix of "hsa-runtime64" to CMAKE_PREFIX_PATH or set
      "hsa-runtime64_DIR" to a directory containing one of the above files.  If
      "hsa-runtime64" provides a separate development package or SDK, be sure it
      has been installed.
    Call Stack (most recent call first):
      /usr/lib/x86_64-linux-gnu/cmake/hip/hip-config.cmake:215 (find_dependency)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!

Build log after `apt install libhsa-runtime-dev`:

    # CXX=hipcc cmake -S. -Bbuild
    -- The CXX compiler identification is Clang 15.0.7
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/hipcc - 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
    -- hip::amdhip64 is SHARED_LIBRARY
    -- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS
    -- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Failed
    -- Configuring done
    -- Generating done

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-3-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages libamdhip64-dev depends on:
ii  libamdhip64-5        5.2.3-4
ii  libhiprtc-builtins5  5.2.3-4

libamdhip64-dev recommends no packages.

libamdhip64-dev suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: rocm-hipamd
Source-Version: 5.2.3-5
Done: Cordell Bloor <cgmb@slerp.xyz>

We believe that the bug you reported is fixed in the latest version of
rocm-hipamd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1031538@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cordell Bloor <cgmb@slerp.xyz> (supplier of updated rocm-hipamd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 19 Feb 2023 03:51:26 -0700
Source: rocm-hipamd
Architecture: source
Version: 5.2.3-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Deep Learning Team <debian-ai@lists.debian.org>
Changed-By: Cordell Bloor <cgmb@slerp.xyz>
Closes: 1031264 1031538
Changes:
 rocm-hipamd (5.2.3-5) unstable; urgency=medium
 .
   * d/{libamdhip64-dev,rules}: fix version file
     Closes: #1031264
   * add d/p/0020-replace-x86_64-with-variables.patch
     to fix build on aarch64
   * d/control: add file to hipcc dependencies
   * d/control: add dependencies for find_package(hip)
     Closes: #1031538
   * add d/p/0021-fix-default-cmake-build-on-unsupported-gpus.patch
     to enable gpu arch autodetection with find_package(hip)
   * d/not-installed: ignore doxygen docs
   * d/p/000{4,8,9}*.patch: change hip-lang cmake files,
     to partially fix #1031540
   * d/copyright: update copyright date
   * d/control: add self to uploaders
   * cleanup patch metadata
Checksums-Sha1:
 c03b6692e901f10516a976799c08ba1070cbcdcc 3444 rocm-hipamd_5.2.3-5.dsc
 dd3077393f71c0337b5dbf66d3ae16a74f59c330 20152 rocm-hipamd_5.2.3-5.debian.tar.xz
 d662ab35ae3394e780bca35dc05b395b130591e3 5813 rocm-hipamd_5.2.3-5_source.buildinfo
Checksums-Sha256:
 205cf934c336c41c7afa621550b7cd461b180b7b983154d0a01014b4c4963c35 3444 rocm-hipamd_5.2.3-5.dsc
 5baf7faf07308c3aa464412f2dc2ef4eaa8d95046befccd987d01ebebd3f34a7 20152 rocm-hipamd_5.2.3-5.debian.tar.xz
 a861dedaa6f1515c1b2dd9abf020deb68bf2c638d59238c07d60374b60558726 5813 rocm-hipamd_5.2.3-5_source.buildinfo
Files:
 126d2e4074f2b971066e588a92ff8229 3444 devel optional rocm-hipamd_5.2.3-5.dsc
 b04fddd74f23670240366d0e702ab8ed 20152 devel optional rocm-hipamd_5.2.3-5.debian.tar.xz
 b1932dd93ab3cb6dbeb51958c8ea56fd 5813 devel optional rocm-hipamd_5.2.3-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQZ9+mkfDq5UZ8bCjOZU6N95Os2sFAmPyXhIACgkQOZU6N95O
s2srmBAAjJiukpsQSvmUMBangVbS2HU+QfPG9emcmUuBBVzxqIlx2GsNgNEYStaY
CryO0rjS2s2BAaClqB6NDRj48xHT465zidhSFVwWfcCMBjobuSVGWtuztDITAlnQ
C9UJstulDyhbTifYO451R0JxZ2bss8N1L7hNScyud5ozwA3JYhf8wix5bBmc7s1M
TY1TkZIh9g9lui6dRbZKfYgGpttN2h3QadyPC3lhaao/wQhKGOT/ynl1JNUBzKbC
kpSkW1eRNKes/1YxuNht75Szd/APS62Z4+IXy4PbQcTKvvCjt1Mhc2vK2PDCRre4
PlpXhOOMxScD2l3Z2993Mhw9IcTNQP3zACH0dAT7P65cFs7FFSVNuKc0FqfRzWG+
yRJ38AuZjj9EpTSHw12OkBbxh0mroKi4muYGi159su7GK/pQCUivYdb1jefT56HU
TSa9W2Irzu9prKxbgwI7dTmTnkw7mW9umwY71govOX8Wm3EN0eLCrMj/vThKLkI8
E8nQwycRZ79PonyYCX4whUuYCJ3y56No3vq/KRGHkOALCn7tdOnT5en3eddigQDs
rwoqYfWRGZatK00xnwitq7L2L8eWBCS+rq/onTTL3ZHbEbOk15aEhDImbhbimjH9
vEfmPbX16A4SyPJUJ4lt/qvKVYKDeniXfA041AlM/VgSPYnhMqM=
=yQce
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: