[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    gcc autovectorize
From:       Tom Burdick <tburdi1 () uic ! edu>
Date:       2006-12-11 16:01:47
Message-ID: 200612111001.47831.tburdi1 () uic ! edu
[Download RAW message or body]

I thought it worthy of mentioning, that in all of the newest GCC's (4.x and 
higher) there is an autovectorizing option. I've been using this in a project 
of my own and its made certain loops significantly faster. I'd suggest 
possibly trying krita with the flags this way to see what gcc vectorizes or 
not. Notably, it will automatically take a loop like

for(int i = 0; i < 64; i++) {
	a[i]  = b[i]*c[i];
}

and instead use whatever simd instructions you have to eliminate a good number 
of iterations.

If you've already tried this out, or are already using the simd instructions 
disregard!

-Tom
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic