OpenMP timer doesn't work on inline assembly code?

Posted by Brett on Stack Overflow See other posts from Stack Overflow or by Brett
Published on 2010-06-01T18:40:02Z Indexed on 2010/06/01 18:43 UTC
Read the original article Hit count: 378

Filed under:
|

I'm trying to compare some code samples for speed, and I decided to use the OpenMP timer since I'll eventually be multi threading the code.

The timer works great on two of my four code snippets, but not on the other two

start=omp_get_wtime();
/*code here*/
finish = omp_get_wtime() - start_time;

The four code here sections are serial code, xmmintrin.h code, and two inline assembly codes.

The serial and xmminstrin.h code are able to be timed, but the inline assembly codes returns -1.#IND00 for a time. I can't seem to figure out why this is?

Thanks for any help or suggestions!

© Stack Overflow or respective owner

Related posts about optimization

Related posts about openmp