hi,
i have managed to write a C code for finding the inverse of a matrix, using a partitioned approach, which helps in running the code relatively parallely. I hav planned to compare the results by running it on a single PC and then on 2 or 3 computers, LAN connected, Linux MPI environment. now i have these difficulties, I came to know the way of calculating the time required for running the program, using <time.h> and the syntaxes, clock_t declaration and stuffs.. but, when i tried the inverse of a 64*64 even matrix, it shows the time taken to execute is "0" seconds.... So, i tried a 256*256 matrix, it says " stack overflow, exception"!!!! then how do i find the time required for running the program? for a relatively larger size matrix... obviousl its also one of the results of my simulation!!! pls help me... it only shows the time required to print things on screen... i mean, when i print all the results like, A matrix, Ainverse matrix etc... it takes long time to print them and so, it tellls.. time taken is "6 seconds" or so.... if i amnt clear enough, i wud explain it further... thk u.
/legolas
i have managed to write a C code for finding the inverse of a matrix, using a partitioned approach, which helps in running the code relatively parallely. I hav planned to compare the results by running it on a single PC and then on 2 or 3 computers, LAN connected, Linux MPI environment. now i have these difficulties, I came to know the way of calculating the time required for running the program, using <time.h> and the syntaxes, clock_t declaration and stuffs.. but, when i tried the inverse of a 64*64 even matrix, it shows the time taken to execute is "0" seconds.... So, i tried a 256*256 matrix, it says " stack overflow, exception"!!!! then how do i find the time required for running the program? for a relatively larger size matrix... obviousl its also one of the results of my simulation!!! pls help me... it only shows the time required to print things on screen... i mean, when i print all the results like, A matrix, Ainverse matrix etc... it takes long time to print them and so, it tellls.. time taken is "6 seconds" or so.... if i amnt clear enough, i wud explain it further... thk u.
/legolas