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

rocm and opencl-icd first test



Hello,

We are now playing with podman+rocm. It works out of the box, with the --env parameter in order to set the right proxy.

But now I get this error message for this test.

Test-Command: rocm-test-launcher debian/tests/reconstruct
Features: test-name=reconstruct-rocm
Depends: ufo-filters, libufo-bin, git, rocm-opencl-icd, ca-certificates, pkg-rocm-tools
Restrictions: allow-stderr, needs-internet, skip-not-installable, skippable

$ cat debian/tests/reconstruct 
#!/bin/sh -e

## We will work in the tmp directory :
cd $AUTOPKGTEST_TMP

## Getting data by cloning git :
git clone https://plmlab.math.cnrs.fr/tomogroup/ufo-testing.git

export UFO_DEVICE_TYPE="cpu,gpu"

## Data should now sits here : ufo-testing/sino-bin-810x1562-4.raw
ufo-launch read path=ufo-testing/sino-bin-810x1562-4.raw raw-width=810 raw-height=1562 raw-bitdepth=32 ! \
  destrip-faster threshold=.1 max-correction=10 strip-width=16 average-height=250 output=destriped correction-mode=additive ! \
  smooth-pad out-width=1024 in-center=405 ! \
  crop x=0 width=1024 y=200 height=1004 ! \
  fft auto-zeropadding=0 dimensions=1 ! filter filter=ramp-fromreal ! ifft ! \
  backproject angle-step=0.003127908 mode=texture roi-x=0 roi-y=0 roi-width=1024 roi-height=1024 axis-pos=512 ! \
  write filename=reco-fbp-1024x1024-4.raw bits=32


so here the error when using the rocm-opencl-icd

=== Build log ===
fatal error: malformed or corrupted AST file: 'could not find file '/usr/lib/llvm-17/lib/clang/17/include/opencl-c-base.h' referenced by AST file '/tmp/comgr-d44900/include/opencl1.2-c.pch''
1 error generated.
Error: Failed to compile source (from CL or HIP source to LLVM IR).


(ufo-launch:4145): GLib-WARNING **: 12:04:26.959: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Failed to build OpenCL program: CL_BUILD_PROGRAM_FAILURE

=== Build log ===
fatal error: malformed or corrupted AST file: 'could not find file '/usr/lib/llvm-17/lib/clang/17/include/opencl-c-base.h' referenced by AST file '/tmp/comgr-ea3662/include/opencl1.2-c.pch''
1 error generated.
Error: Failed to compile source (from CL or HIP source to LLVM IR).

Is it a missing dependency to the rocm-opencl-icd ?

I can see this in our package tracker

File 	Packages
/usr/include/cclang/opencl-c-base.h 	libopencl-clang-17-dev [not mips64el, mipsel], libopencl-clang-18-dev [not mips64el, mipsel], libopencl-clang-19-dev [not mips64el, mipsel]
/usr/lib/llvm-14/lib/clang/14.0.6/include/opencl-c-base.h 	libclang-common-14-dev [mipsel]
/usr/lib/llvm-15/lib/clang/15.0.7/include/opencl-c-base.h 	libclang-common-15-dev [mipsel]
/usr/lib/llvm-16/lib/clang/16/include/opencl-c-base.h 	libclang-common-16-dev [mipsel]
/usr/lib/llvm-17/lib/clang/17/include/opencl-c-base.h 	libclang-common-17-dev [not mips64el, mipsel]
/usr/lib/llvm-18/lib/clang/18/include/opencl-c-base.h 	libclang-common-18-dev [not mips64el, mipsel]
/usr/lib/llvm-19/lib/clang/19/include/opencl-c-base.h 	libclang-common-19-dev [not mips64el, mipsel]
/usr/libexec/swift/lib/clang/17/include/opencl-c-base.h 	swiftlang [amd64, arm64]
/usr/share/castxml/clang/include/opencl-c-base.h 	castxml [not mips64el, mipsel]
/usr/share/pocl/include/opencl-c-base.h 	libpocl2-common


Everythiong works fine if I run this with pocl

Tests: reconstruct
Depends: ufo-filters, libufo-bin, git, pocl-opencl-icd, ca-certificates
Architecture: amd64, arm64, armel, armhf, i386
Restrictions: allow-stderr, needs-internet, skip-not-installable



some help would be great in order to fix this :)

Fred


Reply to: