- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am working on speeding up my program with VML. The following is my test:
start = clock();
for(int j = 0; j<1000; j++)
vsHypot(800, xx, yy, zz);
end = clock();
report time;
start = clock();
for(int j=0; j<1000; j++){
for (int i=0; i<800; ++i)
zz = (float)(hypot(xx, yy));
}
end = clock();
report time;
Basically, xx yy and zz are array of float with length of 800. I found that using vsHypot function is lower than using element-by-elementy calculation hypot by about 5-6 times. My program is running on AMD64 machine and I used "-Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -lguide -lpthread -limf -lirc -lm" to compile. Did you see anything wrong with my test and why it is so low to use VML function?
Thanks,
Xiaoping
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Xiaoping,
Your timing system looks ok. Thank you for the catch. We will look forward to fix it.
Thanks,
Ilya

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page