Code Comments
Programming Forum and web based access to our favorite programming groups.hello. i wrote over 5000 lines of code, and compilation needs about 30seconds, the programm code needs about 320seconds to execute. i am working on amd 2500+ and code is optimized for amd athlon. but i need the code to work faster. i would like to change the cpu / complete pc system. what cpu is best/fastest for executing fortran code? i think the FPU must be good. Xeon? Pentium 4 EE? Opteron? Athlon FX? Itanium? any ideas? thanks!
Post Follow-up to this messagei have to add the following: same code on a single intel xeon 2200Mhz needs about 352seconds. ram is on both systems over 1GB. would be very nice to recieve some ideas about making computing faster. regards
Post Follow-up to this messageTony199 wrote: > hello. > i wrote over 5000 lines of code, and compilation needs about 30seconds, > the programm code needs about 320seconds to execute. i am working on > amd 2500+ and code is optimized for amd athlon. but i need the code to > work faster. i would like to change the cpu / complete pc system. what > cpu is best/fastest for executing fortran code? i think the FPU must be > good. Xeon? Pentium 4 EE? Opteron? Athlon FX? Itanium? any ideas? > thanks! The lack of information here makes this look like a troll. If you don't parallelize, any of those which support MP would be off target. If you do, the same program may perform best on any of those models which support MP, depending on the data. -- Tim Prince
Post Follow-up to this messageTony199 wrote: > hello. > i wrote over 5000 lines of code, and compilation needs about 30seconds, > the programm code needs about 320seconds to execute. i am working on > amd 2500+ and code is optimized for amd athlon. but i need the code to > work faster. i would like to change the cpu / complete pc system. what > cpu is best/fastest for executing fortran code? i think the FPU must be > good. Xeon? Pentium 4 EE? Opteron? Athlon FX? Itanium? any ideas? > thanks! > Have you used a profiler to determine where the code spends it time? The choice of a bad algorithm can be a killer. -- steve
Post Follow-up to this messagesorry i am not a troll. where is the problem? lack of information? what do you want more? well the code, yes is very huge, but the code is also very sientific, the cpu has to compute a lot of doubles. with my current knowledge, i think the prozess (theard) is only one, so MP would not help me. but i have seen that the same code runns very different if the cpu is intel or amd. i thought my code ( coded with intel fortran compiler 8.1) would run on an intel xeon a lot faster than on an amd athlon 2500+. but thats not. so i ask now here if you know where fortran code is computed faster than on my current system. yes sure, itanium was a bit stupid. it is nearly not affordable. i looked around and checked some cpus with sisoft sandra. and the benchmark system gave me some information about FPU, ALU, MIPS, GFLOPS etc. maybe you know which value is important to speed up code. i thought, the faster the FPU is the faster the fortran code weill speeded up. and i am not a troll :-) Tim Prince schrieb: > Tony199 wrote: > 30seconds, on to what must be > The lack of information here makes this look like a troll. > If you don't parallelize, any of those which support MP would be off target. > If you do, the same program may perform best on any of those models which > support MP, depending on the data. > -- > Tim Prince
Post Follow-up to this messagesorry, no i have not used a profiler. i just upgrade from Compaq 6.6 to intel fortran 8.1 and everything seems to be a bit different. where can i find that profiler? sorry. :-)
Post Follow-up to this messageTony199 wrote: > sorry i am not a troll. where is the problem? lack of information? what > do you want more? well the code, yes is very huge, but the code is also > very sientific, the cpu has to compute a lot of doubles. > with my current knowledge, i think the prozess (theard) is only one, so > MP would not help me. but i have seen that the same code runns very > different if the cpu is intel or amd. i thought my code ( coded with > intel fortran compiler 8.1) would run on an intel xeon a lot faster > than on an amd athlon 2500+. but thats not. so i ask now here if you > know where fortran code is computed faster than on my current system. > yes sure, itanium was a bit stupid. it is nearly not affordable. > > i looked around and checked some cpus with sisoft sandra. and the > benchmark system gave me some information about FPU, ALU, MIPS, GFLOPS > etc. maybe you know which value is important to speed up code. i > thought, the faster the FPU is the faster the fortran code weill > speeded up. > > and i am not a troll :-) > The most constructive answer to how to lower your execution time is to improve your algorithm. The most polished n^2 sort (bubble, merge whatever) will be left in the dust by even a minimally competent n log(n) sort (quick, tree, whatever). Sometimes algorithm choice means not getting into trouble with paging or caching issues. You have done a superb imitation of a clown who thinks that a highly polished lousy algorithm ever stands a chance of being efficient. The requests for more information are trying to find out what type of problem you are dealing with so that efficient algorithms can be suggested. Your response reinforces the notion that you are almost surely totally ignorant of the many variants on algorithm analysis which have made many problems tractable. Unfortunately you have also chosen to associate yourself with trolls and the like by choosing to have only a handle rather than a a full name. Until you have a realistic problem statement beyond 5000 lines of code that use double precision you will get no useful advice. By the way, 5000 lines of code is not very big for this newsgroup. > > Tim Prince schrieb: > > > 30seconds, > > > on > > > to > > > what > > > must be > > > target. > > > which > > >
Post Follow-up to this messageIn any case, thanks for any suggestions, Mr Gordon Sande. Next time I'll repsect the netiquette, I am sorry. The code is part of a diss and I really know about algorisms but I wanted to know something about CPUs and not coding. So thanks, to comment my beheaviour in 17 lines... (wt)
Post Follow-up to this messageTony199 wrote: > sorry, no i have not used a profiler. i just upgrade from Compaq 6.6 to > intel fortran 8.1 and everything seems to be a bit different. where can > i find that profiler? sorry. :-) ifort 8.1 on linux should work well with gprof. Does your statement imply you are limited to Windows? Try VTune. -- Tim Prince
Post Follow-up to this messagethank you. yes i am limited to windows only. vtune, i'll try it. thanks very much. btw: i have found that parallelizer and openMP. so far i understand that, it means that the parallelizer makes code that can be handled by muli-threading. i think that will boost up the code. i saw that you have to use especial compilation codes to especialize cpus. I will try it out. thank you so far!!
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.