NO

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

Offline JohnF

  • Member
  • *
  • Posts: 1114
    • http://www.johnfindlay.plus.com/
Re: frequency of ints in huge array
« Reply #60 on: July 17, 2014, 03: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, 03: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, 12:20:01 AM by neo313 »

Offline JohnF

  • Member
  • *
  • Posts: 1114
    • http://www.johnfindlay.plus.com/
Re: frequency of ints in huge array
« Reply #62 on: July 17, 2014, 04: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, 04:28:50 PM by JohnF »