- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I compiled the following program with ICC 10.1 (20080801) using options '-O3 -axT' and with GCC 4.3.1 using options '-O3 -mtune=generic'. Surprisingly, the GCC code runs much faster (6.6s) than the ICC code (16.3s) on a Xeon @ 2.8 GHz. Any ideas where this difference comes from? Thanks a lot.
#include
int main() {
int src[XRES][YRES], dst[XRES][YRES];
for(int i = 0; i < 100; i++)
for(int x = 0; x < XRES; x++)
for(int y = 0; y < YRES; y++) {
int sum(0), count(0);
for(int xb = std::max(x-(MASK/2),0); xb for(int yb = std::max(y-(MASK/2),0); yb sum += src[xb][yb];
count++;
}
dst
}
return(dst[0][0]);
}
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is an issue with the IDZ that when adding any note to the thread or changing the thread status, it got bumped up to the top. This issue has been brought up, but just has not been resolved. It is why this thread got displayed on the top.
Jennifer
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »