Closed pjaaskel closed 11 months ago
It passes sometimes. Could be a race related to the event-based synchronization.
...
CHIP info [TID 339310] [1699538655.019354172] :
Launching kernel __chip_reset_non_symbols
GridDim: <1, 1, 1> BlockDim: <1, 1, 1>
SharedMem: 0
NumArgs: 0
CHIP debug [TID 339310] [1699538655.019443719] : Setting LastEvent for 0x55aa4cc480 0x0 -> 0x55aa796e10
CHIP debug [TID 339310] [1699538655.019461678] : Tracking chipstar::Event 0x55aa41ec30 in Backend::Events
Nope, I think it's a serious driver-related issue. I tried to run example1 from PoCL examples. Works with PoCL-CPU on the Arm CPU of that SoC, but gets stuck with the Mali driver:
chiptest@odroid:~/src/pocl/build$ POCL_BUILDING=1 OCL_ICD_VENDORS=$PWD/ocl-vendors/pocl-tests.icd examples/example1/example1
(0.000000, 0.000000, 0.000000, 0.000000) . (0.000000, 0.000000, 0.000000, 0.000000) = 0.000000
(1.000000, 1.000000, 1.000000, 1.000000) . (1.000000, 1.000000, 1.000000, 1.000000) = 4.000000
(2.000000, 2.000000, 2.000000, 2.000000) . (2.000000, 2.000000, 2.000000, 2.000000) = 16.000000
(3.000000, 3.000000, 3.000000, 3.000000) . (3.000000, 3.000000, 3.000000, 3.000000) = 36.000000
...
chiptest@odroid:~/src/pocl/build$ OCL_ICD_VENDORS=/etc/OpenCL/vendors/mali.icd examples/example1/example1
^C^C^C
chiptest@odroid:~/src/pocl/build$ OCL_ICD_VENDORS=/etc/OpenCL/vendors/mali.icd examples/example1/example1
(0.000000, 0.000000, 0.000000, 0.000000) . (0.000000, 0.000000, 0.000000, 0.000000) = 0.000000
(1.000000, 1.000000, 1.000000, 1.000000) . (1.000000, 1.000000, 1.000000, 1.000000) = 0.000000
FAIL
chiptest@odroid:~/src/pocl/build$ OCL_ICD_VENDORS=/etc/OpenCL/vendors/mali.icd examples/example1/example1
(0.000000, 0.000000, 0.000000, 0.000000) . (0.000000, 0.000000, 0.000000, 0.000000) = 0.000000
(1.000000, 1.000000, 1.000000, 1.000000) . (1.000000, 1.000000, 1.000000, 1.000000) = 0.000000
FAIL
chiptest@odroid:~/src/pocl/build$ OCL_ICD_VENDORS=/etc/OpenCL/vendors/mali.icd examples/example1/example1
It either gets stuck or finishes but without results.
With #676 applied, a simple compile test case gets stuck in a clFinish() call.