News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

frequency of ints in huge array

Started by czerny, July 03, 2014, 01:29:15 PM

Previous topic - Next topic

JohnF

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

#61
Quote from: JohnF 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

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

I'm using RC5

JohnF

#62
Quote from: neo313 on July 17, 2014, 04:35:01 PM
Quote from: JohnF 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

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