silx-kit / silx

silx toolkit
http://www.silx.org/doc/silx/latest/
MIT License
121 stars 71 forks source link

sift: Compilation error on Intel Gen OCL Driver #3945

Open vallsv opened 10 months ago

vallsv commented 10 months ago

Trying to use sift on my computer, here is the message i have with PYOPENCL_COMPILER_OUTPUT=1

In case it's useful.

Feel free to close the issue, it is not so important to me.

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
/nobackup/lvalls1/valls/Software/miniconda3/envs/silxenv/lib/python3.8/site-packages/pyopencl/cache.py:495: CompilerWarning: Built kernel retrieved from cache. Original from-source build had warnings:
Build on <pyopencl.Device 'Intel(R) UHD Graphics Coffee Lake Desktop GT2' on 'Intel Gen OCL Driver' at 0x7f4afdb2bfe0> succeeded, but said:

stringInput.cl:114:74: warning: unknown attribute 'max_constant_size' ignored
stringInput.cl:163:70: warning: unknown attribute 'max_constant_size' ignored
stringInput.cl:455:59: warning: unknown attribute 'max_constant_size' ignored
stringInput.cl:456:59: warning: unknown attribute 'max_constant_size' ignored
stringInput.cl:457:60: warning: unknown attribute 'max_constant_size' ignored

  _create_built_program_from_source_cached(
ERROR:silx.gui.plot.CompareImages:clEnqueueNDRangeKernel failed: INVALID_GLOBAL_WORK_SIZE
kif commented 9 months ago

Thanks, I will try to find a computer with the same hardware to check.

kif commented 9 months ago

@pierrepaleo could you please check this on batman, I believe this computer has this kind of iGPU.

kif commented 9 months ago

@ vallsv what is the size of the image you are trying to work with ?

kif commented 9 months ago

I checked on a Intel Xe iGPU (Core 11th gen) and the code works ... Can you provide us with the CPU model ? (lscpu) Coffee lake is a 8th gen.

vallsv commented 9 months ago
$ lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
Address sizes:       39 bits physical, 48 bits virtual
CPU(s):              6
On-line CPU(s) list: 0-5
Thread(s) per core:  1
Core(s) per socket:  6
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               158
Model name:          Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Stepping:            10
CPU MHz:             2498.571
CPU max MHz:         4100.0000
CPU min MHz:         800.0000
BogoMIPS:            6000.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            9216K
NUMA node0 CPU(s):   0-5
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
vallsv commented 9 months ago

The images was not so big less than 2000x2000 px, i think

t20100 commented 7 months ago

@vallsv @kif what is the status of this issue? Does it need to be fixed for the upcoming release?

vallsv commented 7 months ago

It's not a regression, so it's not a problem for the release

kif commented 7 months ago

I tested on Intel core generation 4 and it works with the old "beignet" drivers. With Ubuntu 22.04 on 11th gen it works with the same driver as Valentin has on his computer.

Could be that the bug is related to Wayland ...