HI!
I have a tricky question.
I've a simple code that does some operation (no more than addition and multiplication) with complex number.
I've compiled my code with the -g option and with the -o3. And some of the resulting values are different.
So I started inserting some WRITE statements in the intermediate computation and some of the previous results that were different now are exactly the same!!
So I tought it happened because in some point are made some read or write over the array bound. I've run Valgrind and it didn't found any errors or illegal value access.
What can I do?
I believe that both using the -o3 and -g compiling option yhe results must be the same! And, in addition, that insertint WRITE statements will not modify the results!!!!
thank you very much !
Federico
I have a tricky question.
I've a simple code that does some operation (no more than addition and multiplication) with complex number.
I've compiled my code with the -g option and with the -o3. And some of the resulting values are different.
So I started inserting some WRITE statements in the intermediate computation and some of the previous results that were different now are exactly the same!!
So I tought it happened because in some point are made some read or write over the array bound. I've run Valgrind and it didn't found any errors or illegal value access.
What can I do?
I believe that both using the -o3 and -g compiling option yhe results must be the same! And, in addition, that insertint WRITE statements will not modify the results!!!!
thank you very much !
Federico