The Linear Clause and Chucked Dynamic Schedule Clause Cannot Be Used Together
When the linear clause and chucked dynamic schedule clause are used together, OpenMP does not support thread scheduling in this scenario. As a result, the value of the linear variable of the loop after running is incorrect.
This scenario has been pulled to the community (https://github.com/llvm/llvm-project/issues/61230) and is waiting for the community to rectify the fault.
The workaround is to use other clauses or do not use chucked dynamic schedule.
Parent topic: OpenMP Compatibility