Git Product home page Git Product logo

Comments (7)

kmilos avatar kmilos commented on August 17, 2024 1

Looks like there are a few teething problems related to the updated ROCm stack in F40, see also https://discuss.pixls.us/t/opencl-on-fedora-40-with-rocm-amd-not-working/43378

I wonder if seeking help in Fedora specific forums and support channels is maybe a better idea...

from darktable.

gi-man avatar gi-man commented on August 17, 2024 1

magicgoose, the CL drivers needs to be available in your OS for darktable to be able to compile. I just updated to F40 today. ROCM-opencl loads correctly and clinfo reports the devices.

I have a separate issue that kmilos hinted above. I can see it via darktable-cltest -d verbose

     0.4861 [opencl_load_program] successfully loaded program from '/home/gman/VS_Git/darktable/build/share/darktable/kernels/demosaic_ppg.cl' MD5: '933416c7e3c331448c3fec49d8276e5b'
     0.5027 [opencl_build_program] could not build program: CL_BUILD_PROGRAM_FAILURE
     0.5027 [opencl_build_program] BUILD STATUS: -2
     0.5027 BUILD LOG:
     0.5028 fatal error: malformed or corrupted AST file: 'could not find file '/usr/lib64/llvm17/bin/../../../lib/clang/17/include/opencl-c-base.h' referenced by AST file '/tmp/comgr-f76c16/include/opencl1.2-c.pch''
1 error generated.
Error: Failed to compile source (from CL or HIP source to LLVM IR).

I think the path is incorrect.

from darktable.

magicgoose avatar magicgoose commented on August 17, 2024

(I think this is the same driver that has a different kind of problem here #16717)

from darktable.

victoryforce avatar victoryforce commented on August 17, 2024

clinfo also crashes,

In other words, you have a broken OpenCL stack.

so this is possibly not a problem with darktable but I thought to file the bug just in case it still gives useful information.

So, what do you expect from the darktable developers?

from darktable.

gi-man avatar gi-man commented on August 17, 2024

Try with dnf install rocm-opencl. Remove the mesa one.

from darktable.

magicgoose avatar magicgoose commented on August 17, 2024

Try with dnf install rocm-opencl. Remove the mesa one.

That's what I used on Fedora 39 with success, but on Fedora 40 the GPU is no longer recognizable as usable:
darktable-cltest:

     0.0194 [dt_get_sysresource_level] switched to 2 as `large'
     0.0194   total mem:       64209MB
     0.0194   mipmap cache:    8026MB
     0.0194   available mem:   43893MB
     0.0194   singlebuff:      1003MB
     0.0313 [opencl_init] opencl disabled via darktable preferences
     0.0314 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
     0.0314 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
     0.0314 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
     0.0828 [opencl_init] found 1 platform
     0.0829 [check platform] platform 'AMD Accelerated Parallel Processing' with key 'clplatform_amdacceleratedparallelprocessing' is NOT active
[opencl_init] found 0 device
     0.0829 [opencl_init] FINALLY: opencl is NOT AVAILABLE and NOT ENABLED.

and clinfo has a NULL device, which probably shouldn't be so:

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3602.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD
  Platform Host timer resolution                  1ns

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  AMD Accelerated Parallel Processing
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No devices found in platform [AMD Accelerated Parallel Processing?]
  clCreateContext(NULL, ...) [default]            No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loaderns
  ICD loader Vendor                               OCL Icd free softwarens
  ICD loader Version                              2.3.2ns
  ICD loader Profile                              OpenCL 3.0ns

from darktable.

magicgoose avatar magicgoose commented on August 17, 2024

magicgoose, the CL drivers needs to be available in your OS for darktable to be able to compile. I just updated to F40 today. ROCM-opencl loads correctly and clinfo reports the devices.

Thanks for the data point. Is this just a single package (rocm-opencl)? I also have it installed.
And your GPU is not https://en.wikipedia.org/wiki/Radeon_500_series ?
I've heard part of the problem is that AMD is neglecting some "older" devices in their recent linux driver updates, but hard to understand what is really happening there.

from darktable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.