Thanks Alexey, setting the parameter worked.
However after switching to OpenCL the error that I get is the following:
...
...
Using device: NVIDIA GeForce RTX 2080 SUPER, 48 compute units, 7980 MB global memory, OpenCL 3.0
driver version: 510.54, platform version: OpenCL 3.0 CUDA 11.6.110
max work group size 1024
max work item sizes [1024, 1024, 64]
max mem alloc size 1995 MB
warp size 32
Building OpenCL kernels for NVIDIA GeForce RTX 2080 SUPER...
Kernels compilation done in 2.83562 seconds
Building OpenCL kernels for NVIDIA GeForce RTX 2080 SUPER...
Kernels compilation done in 0.646988 seconds
Traceback (most recent call last):
File "/home/ttsesm/Development/metashape_project/bundler_extractor.py", line 68, in <module>
main()
File "/home/ttsesm/Development/metashape_project/bundler_extractor.py", line 47, in main
chunk.matchPhotos()
Exception: Kernel locatePoints: clWaitForEvents(1, &ev): CL_UNKNOWN_ERROR_CODE_-9999 (-9999) at line 638
Process finished with exit code 1
My linux distribution is Arch linux, fully updated to the latest packages. The nvidia driver version is again the latest and specifically v.510.54 as you can see above in the output.
Is there any other log that I can provide you? I am running the script through pycharm with the metashape interpreter as described here
https://agisoft.freshdesk.com/support/solutions/articles/31000154762-how-to-make-python-interpreter-to-use-metashape-module------------------------------------------------------------------------------------
Also without the OpenCL workaround, initially the error usually I get is the following:
...
...
Found 1 GPUs in 0.000133 sec (CUDA: 7.3e-05 sec, OpenCL: 5.3e-05 sec)
Using device: NVIDIA GeForce RTX 2080 SUPER, 48 compute units, free memory: 6807/7980 MB, compute capability 7.5
driver/runtime CUDA: 11060/10010
max work group size 1024
max work item sizes [1024, 1024, 64]
[GPU] photo 19: 8310 points
[GPU] photo 48: 8221 points
[GPU] photo 77: 8417 points
[GPU] photo 106: 7715 points
[GPU] photo 135: 6117 points
[GPU] photo 164: 8341 points
[GPU] photo 193: 9600 points
[GPU] photo 222: 8013 points
[GPU] photo 251: 9177 points
[GPU] photo 280: 9049 points
[GPU] photo 309: 7521 points
[GPU] photo 338: 9145 points
[GPU] photo 367: 8751 points
[GPU] photo 396: 8642 points
[GPU] photo 425: 9032 points
[GPU] photo 454: 8926 points
[GPU] photo 483: 9299 points
[GPU] photo 512: 8379 points
Warning: cudaStreamDestroy failed: an illegal memory access was encountered (700)
Traceback (most recent call last):
File "/home/ttsesm/Development/metashape_project/bundler_extractor.py", line 68, in <module>
main()
File "/home/ttsesm/Development/metashape_project/bundler_extractor.py", line 47, in main
chunk.matchPhotos()
Exception: Kernel failed: an illegal memory access was encountered (700) at line 143
Process finished with exit code 1
In case it helps somehow.