| Thread Tools | Search this thread |
|---|
shachris23
| November 24, 2008 3:33 PM PST C function vs Fortran function performance | ||||
Hi, Not trying to start a language war or anything, but I work in a real-time image processing industry where performance is of utmost concern. Our initial algorithms were written in Fortran back in the 70's/80's, and eventually translated to C. Right now our application uses C++ for infrastructure-related stuff, and C for the algorithms for maximum performance. The C algorithm functions are parallelized using master-worker design pattern. We use Intel compiler. Our platform is Windows x64. I have never coded in Fortran but heard that it's great for scientific computing, as well as unmatched (?) performance by other language. So...here's the question: assuming an algorithm is coded efficiently in C and Fortran (i.e. they both describe the same algorithm), would code produced in Fortran be significantly faster than the C counterpart? Assuming that we use Intel compiler for both C and Fortran. Because if Fortran really is faster, I'm thinking about making an object code out of Fortran and call it from our C++ infrastructure instead. Thanks!! S. | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 8458 users have contributed to 31572 threads and 100535 posts to date. |
|---|
| In the past 24 hours, we have 18 new thread(s) 131 new posts(s), and 154 new user(s). In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Quoting - rase if (k.eq.0 Please welcome our newest member soundmyth |