views:

37

answers:

0

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!