On Wed, 20 Oct 2010, David Kantrowitz wrote:

> I'm trying out LCMS2 for a project. So far it's working nicely but I'd
> like to speed up the application of a transform. My question is this:
> Is it safe to create a single transform on the main thread and apply
> it (via DoTransform) on multiple threads running concurrently? I'm
> creating the transform with CreateMultiprofileTransform.

Development GraphicsMagick is working fine (apparently without 
occasional speckles that Kai-Uwe reports) with lcms2 and threading via 
OpenMP.  However, the transforms are created in advance using one 
thread since this was found to be necessary for lcms1 for some 
profiles.  I have not tried multi-threading the transform creation 
(again) yet.  Most transforms are created very quickly although there 
are a few transforms which seem to take quite a lot of time to 
generate.

On NUMA type systems (e.g. AMD Opteron), there could be considerable 
performance advantage if the transform is created by the same thread 
which uses it.

Bob
-- 
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to