[gdal-dev] multithreading

Even Rouault even.rouault at spatialys.com
Tue Jul 29 09:30:19 PDT 2025


Javier,

for gdal_translate to COG, both should be equivalent.

for gdalwarp,   -wo NUM_THREADS=ALL_CPUS -co NUM_THREADS=ALL_CPUS (ie 
enabling multithreading for warping and GeoTIFF output)   will be 
equivalent to --config GDAL_NUM_THREADS=ALL_CPUS

Note that you can also do gdalwarp directly to COG. This should do the 
right things

Even

Le 29/07/2025 à 18:25, Javier Jimenez Shaw via gdal-dev a écrit :
> Hi
>
> I am running a gdalwarp from UTM xx to EPSG:3857 and later a 
> gdal_translate to COG (the input is a normal GeoTIFF). Two steps. All 
> inputs and outputs are TIFF.
>
> Is there any difference between using the config variable
> GDAL_NUM_THREADS=ALL_CPUS
> than using the creation option for the TIFFs
> NUM_THREADS=ALL_CPUS
>
> What is the fastest combination?
>
> Thanks.
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list