Forum

Author Topic: Metashape pro 2.3.1 thorws an open cl error on ubuntu 26.04 with AMD rocm stack  (Read 1382 times)

grgoje

  • Newbie
  • *
  • Posts: 4
    • View Profile
I deployed metashape pro 2.3.1 on my fresh kubuntu 26.04 install on a strix halo laptop.
Ubuntu 26.04 has rocm stack in it's default repos and i have installed the opencl as a part of it.
The GPU is visible to metashape as OpenCL and Vulkan units. It works perfectly for image alignment. But when i try to calculate depthmaps it throws Error: ciErrNum: CL_BUILD_PROGRAM_FAILURE (-11) at line 1175

I'm attaching a full console output, including the successful  alignment phase. I have tried several datasets with the same results.

Best regards,
              Grga

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15691
    • View Profile
Hello Grga,

Can you please share the output of clinfo command? (Can be installed via sudu apt install clinfo command).

Also please specify, if you have Windows OS available on the same laptop, if so - have you tried running Metashape there?

And I can also suggest to check, if depth maps generation works using older algorithm, if you create BuildDepthMaps/pm_enable tweak and set its value to False. Save the log for that run and share it as well.
Best regards,
Alexey Pasumansky,
Agisoft LLC

grgoje

  • Newbie
  • *
  • Posts: 4
    • View Profile
Hi Alexey,

Machine originally had Windows and metashape worked nicely there.

From my own research it seems to me that the problem might be in the fact that ubuntu 26.04 repos ship rocm that is several months old and doesn't fully support gfx1151(strix halo) APU's. See https://www.phoronix.com/news/Ubuntu-26.04-With-ROCm

In the meantime AMD rocm repos still don't support 26.04.

Depth map generation did work with BuildDepthMaps/pm_enable=false. What are disadvantages of the older algorithm? It did seem to take a bit longer than expected on a known dataset.

The clinfo output is attached, but the console output you asked for is to large for the forum (2+ mb). I'm attaching a redacted version with repetetive parts removed.