Comments (7)
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.
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.
(I think this is the same driver that has a different kind of problem here #16717)
from darktable.
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.
Try with dnf install rocm-opencl. Remove the mesa one.
from darktable.
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, 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)
- Linking error with libraw HOT 3
- IPTC metadata are not encoded in UTF-8 HOT 11
- Maps page not appearing in available screens anymore + not starting with keybaord shortcut HOT 3
- Sony A9 III (ILCE-A9M3) noise profile support HOT 6
- Ubuntu darktable.cli is failing HOT 2
- New Styles crashes Darktable HOT 2
- Square crop after using perspective correction HOT 4
- preliminary noise profiles for Canon EOS R6 MkII HOT 3
- Possible Lua upgrade issue HOT 3
- Can't open and use Darktable HOT 2
- Cannot open the program after installing HOT 14
- Regression? Canon SX50 RAWs open in a strange and unreadable way. HOT 3
- The program can't restart HOT 2
- Export with upscaling turned on - sometimes it fails HOT 12
- Snapshot compare shows black portion HOT 1
- Store image groupings in sidecar file (XMP) HOT 4
- history: occasional white-balance inactivation when switching images HOT 6
- cropping: occasional glitch in crop box HOT 8
- Map Module - missing image icons, missing scroll bar in film strip on Intel Mac HOT 3
- Crash in darkroom HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darktable.