- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
#include
#include
#include
int main()
{
int i,j;
double k,l;
k = 0.0;
Why gives the following program, when
compiled with the -parallel option
of the icc 7.1 compiler the result 0.0?
Hardware: dual intel p4 with hyperthreading
When compiled on an amd athlon single processor
unit with the same option I get a correct
result.
Regards
Frank Knoben
admin@igpm.rwth-aachen.de
#include
#include
#include
int main()
{
int i,j;
double k,l;
k = 0.0;
for (i=0;i<10000;i++)
{
for (j=0;j<10000;j++)
{
k += sqrt(i*j*3.0);
}
}
l = k;
printf("k=%f l=%f ",k,l);
exit(1);
}
#include
#include
int main()
{
int i,j;
double k,l;
k = 0.0;
Why gives the following program, when
compiled with the -parallel option
of the icc 7.1 compiler the result 0.0?
Hardware: dual intel p4 with hyperthreading
When compiled on an amd athlon single processor
unit with the same option I get a correct
result.
Regards
Frank Knoben
admin@igpm.rwth-aachen.de
#include
#include
#include
int main()
{
int i,j;
double k,l;
k = 0.0;
for (i=0;i<10000;i++)
{
for (j=0;j<10000;j++)
{
k += sqrt(i*j*3.0);
}
}
l = k;
printf("k=%f l=%f ",k,l);
exit(1);
}
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I reproduced your issue and this appears to be a problem in the compiler. It would be best that you submit an issue to Intel Premier Support, https://premier.intel.com. You can then be notified when the issue is resolved.
If you have not created a Premier Support account, please go to the registration center, http://www.intel.com/software/products/registrationcenter. Both Premier Support and the Registration Center use the same account.
Thank you,
Elizabeth S.
Intel Customer Support
If you have not created a Premier Support account, please go to the registration center, http://www.intel.com/software/products/registrationcenter. Both Premier Support and the Registration Center use the same account.
Thank you,
Elizabeth S.
Intel Customer Support
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page