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

Compiler errors OpenCL编译器对Windows 10用户配置文件敏感?,compiler-errors,opencl,Compiler Errors,Opencl,长话短说,我在Windows10上使用darktable,它使用OpenCL库。幕后的darktable将使用OpenCL编译器来编译内核(更多细节请参阅)。不幸的是我犯了错误 C:\Program Files\darktable\bin>darktable-cltest.exe 0.094021 [opencl_init] opencl related configuration options: 0.096021 [opencl_init] 0.097022 [opencl_init]

长话短说,我在Windows10上使用darktable,它使用OpenCL库。幕后的darktable将使用OpenCL编译器来编译内核(更多细节请参阅)。不幸的是我犯了错误

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编译器?

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

黑色缓存编译OpenCL内核,然后下次尝试加载它们,以加快速度。不幸的是,由于某些原因,您的缓存不适合您的设备(可能是您更新了系统/驱动程序/某些东西,而darktable没有更新)。您需要清除可黑的内核缓存。从日志来看,它似乎位于以下目录中:

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

只要去那里删除所有内容。

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

黑色缓存编译OpenCL内核,然后下次尝试加载它们,以加快速度。不幸的是,由于某些原因,您的缓存不适合您的设备(可能是您更新了系统/驱动程序/某些东西,而darktable没有更新)。您需要清除可黑的内核缓存。从日志来看,它似乎位于以下目录中:

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

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

这是来自darktable的错误,我使用了更高版本此问题已解决。

这是来自darktable的错误,我使用了更高版本此问题已解决