gpt4 book ai didi

compiler-errors - OpenCL编译器对Windows 10用户配置文件敏感吗?

转载 作者:行者123 更新时间:2023-12-02 10:51:08 25 4
gpt4 key购买 nike

长话短说,我在使用OpenCL库的Windows 10上使用darktable。暗表在后台将使用OpenCL编译器来编译内核(更多细节是https://github.com/darktable-org/darktable/issues/3717)。不幸的是我遇到了错误

C:\Program Files\darktable\bin>darktable-cltest.exe
0.094021 [opencl_init] opencl related configuration options:
0.096021 [opencl_init]
0.097022 [opencl_init] opencl: 1
0.099022 [opencl_init] opencl_library: ''
0.100022 [opencl_init] opencl_memory_requirement: 768
0.101022 [opencl_init] opencl_memory_headroom: 300
0.104022 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
0.106024 [opencl_init] opencl_mandatory_timeout: 200
0.108024 [opencl_init] opencl_size_roundup: 16
0.110025 [opencl_init] opencl_async_pixelpipe: 0
0.111024 [opencl_init] opencl_synch_cache: 0
0.113025 [opencl_init] opencl_number_event_handles: 25
0.114025 [opencl_init] opencl_micro_nap: 1000
0.115025 [opencl_init] opencl_use_pinned_memory: 0
0.116025 [opencl_init] opencl_use_cpu_devices: 0
0.117026 [opencl_init] opencl_avoid_atomics: 0
0.119027 [opencl_init]
0.120026 [opencl_init] found opencl runtime library 'OpenCL.dll'
0.123027 [opencl_init] opencl library 'OpenCL.dll' found on your system and loaded
0.192043 [opencl_init] found 1 platform
0.194043 [opencl_init] found 1 device
0.195044 [opencl_init] device 0 `Ellesmere' supports image sizes of 16384 x 16384
0.198044 [opencl_init] device 0 `Ellesmere' allows GPU memory allocations of up to 4048MB
[opencl_init] device 0: Ellesmere
GLOBAL_MEM_SIZE: 8192MB
MAX_WORK_GROUP_SIZE: 256
MAX_WORK_ITEM_DIMENSIONS: 3
MAX_WORK_ITEM_SIZES: [ 1024 1024 1024 ]
DRIVER_VERSION: 2906.10
DEVICE_VERSION: OpenCL 2.0 AMD-APP (2906.10)
0.450101 [opencl_init] options for OpenCL compiler: -cl-mad-enable -DAMD=1 -I"C:\Program Files\darktable\share\darktable\kernels"
0.455102 [opencl_init] compiling program `demosaic_ppg.cl' ..
0.457103 [opencl_load_program] loaded cached binary program from file `C:\Users\Hardy\AppData\Local\Microsoft\Windows\INetCache\darktable\cached_kernels_for_Ellesmere\demosaic_ppg.cl.bin'
0.464104 [opencl_load_program] successfully loaded program from `C:\Program Files\darktable\share\darktable\kernels\demosaic_ppg.cl'
0.469105 [opencl_build_program] could not build program: -11
0.471105 [opencl_build_program] BUILD STATUS: -2
0.473106 BUILD LOG:
0.474106 Error: The binary is incorrect or incomplete. Finalization to ISA couldn't be performed.

0.478107 [opencl_init] failed to compile program `demosaic_ppg.cl'!
0.480107 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
0.482108 [opencl_init] initial status of opencl enabled flag is OFF.

press any key to exit

但是,当我使用另一个用户配置文件/帐户登录同一台计算机时,它就可以正常工作。因此,这一定是环境问题。我没有OpenCL的经验,所以我想了解一下如何“清理”我的配置文件来修复OpenCL编译器?

最佳答案

这不是环境问题,而是缓存问题。

Darktable缓存会编译OpenCL内核,然后在下一次尝试加载它们时加快速度。不幸的是,由于某种原因,您拥有的缓存对于您的设备而言是不正确的(也许您更新了系统/驱动程序/某些内容,而blacktable错过了它)。您需要清除Darktable内核缓存。从日志看来,它在以下目录中:

C:\Users\Hardy\AppData\Local\Microsoft\Windows\INetCache\darktable\cached_kernels_for_Ellesmere

只需转到那里并删除所有内容即可。

关于compiler-errors - OpenCL编译器对Windows 10用户配置文件敏感吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59277710/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com