NO

Author Topic: frequency of ints in huge array  (Read 33082 times)

JohnF

  • Guest
Re: frequency of ints in huge array
« Reply #60 on: July 17, 2014, 04:20:12 PM »
For anyone interested in OpenMP stuff.

Attached is a small project that shows how to use OpenMP with the CRT qsort.

When OPENMPTEST is defined as 0 no OpenMP stuff is used, when 1, it is used.

timings are 0 > 3285ms, 1 > 1969ms.

John

neo313

  • Guest
Re: frequency of ints in huge array
« Reply #61 on: July 17, 2014, 04:35:01 PM »
For anyone interested in OpenMP stuff.

Attached is a small project that shows how to use OpenMP with the CRT qsort.

When OPENMPTEST is defined as 0 no OpenMP stuff is used, when 1, it is used.

timings are 0 > 3285ms, 1 > 1969ms.

John

I get this error:  (90): error #2918: [omp] Unrecognized or unsupported form of 'for' construct.

I'm using RC5
« Last Edit: July 18, 2014, 01:20:01 AM by neo313 »

JohnF

  • Guest
Re: frequency of ints in huge array
« Reply #62 on: July 17, 2014, 05:11:35 PM »
For anyone interested in OpenMP stuff.

Attached is a small project that shows how to use OpenMP with the CRT qsort.

When OPENMPTEST is defined as 0 no OpenMP stuff is used, when 1, it is used.

timings are 0 > 3285ms, 1 > 1969ms.

John

I get this error:  (90): error #2918: [omp] Unrecognized or unsupported form of 'for' construct.

That's strange. I can't say what's wrong.

EDIT: Are you using the latest version of PellesC?

John

« Last Edit: July 17, 2014, 05:28:50 PM by JohnF »