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

Bug#1099402: libamdhip64-dev: use of undeclared identifier '__ockl_sdot2'



Package: libamdhip64-dev
Version: 5.7.1-5+b1
Severity: normal
X-Debbugs-Cc: cgmb@slerp.xyz

Dear Maintainer,

The following program will fail to compile when built with hipcc:

```
#include <hip/hip_bf16.h>
#include <hip/hip_fp16.h>
#include <hip/hip_runtime.h>
int main() { return 0; }
```

The error encountered is:
```
In file included from /usr/include/hip/hip_runtime.h:62:
In file included from /usr/include/hip/amd_detail/amd_hip_runtime.h:382:
/usr/include/hip/amd_detail/amd_math_functions.h:139:12: error: use of undeclared identifier '__ockl_sdot2'; did you mean '__ockl_fdot2'?
  139 |     return __ockl_sdot2(a.data, b.data, c, saturate);
      |            ^
/usr/lib/llvm-17/lib/clang/17/include/__clang_hip_libdevice_declares.h:303:41: note: '__ockl_fdot2' declared here
  303 | __device__ __attribute__((const)) float __ockl_fdot2(__2f16 a, __2f16 b,
```

This occurs because math_fwd.h or amd_hip_common.h headers are not being
included early enough when these HIP headers are included in this order.

Sincerely,
Cory Bloor

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

Kernel: Linux 6.12.16-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  libamd-comgr-dev     6.0+git20231212.4510c28+dfsg-3+b2
ii  libamdhip64-5        5.7.1-5+b1
ii  libhiprtc-builtins5  5.7.1-5+b1
ii  libhsa-runtime-dev   6.1.2-3

libamdhip64-dev recommends no packages.

Versions of packages libamdhip64-dev suggests:
ii  libamdhip64-doc  5.7.1-5

-- no debconf information


Reply to: