HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting number of threads in OpenMP
Operating System - HP-UX
1833323
Members
2978
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2003 05:45 AM
06-20-2003 05:45 AM
Setting number of threads in OpenMP
HI,
I am using HP-UX C compiler (ver:B.11.11.02) and In that I am intreseted in setting the number of threads while using openmp.
In HP-UX C compiler version (B.11.11.04), the above can be set using the env. variable or library function. If am trying to use the same for my current version of C compiler (B.11.11.02), it will not work ....!!!!
Please give the solution for the above mentioed problem, as how to set the number of threads in HP-UX (C compiler ver: B.11.11.02) using OpenMp?
thanks in advance,
Praveen
I am using HP-UX C compiler (ver:B.11.11.02) and In that I am intreseted in setting the number of threads while using openmp.
In HP-UX C compiler version (B.11.11.04), the above can be set using the env. variable or library function. If am trying to use the same for my current version of C compiler (B.11.11.02), it will not work ....!!!!
Please give the solution for the above mentioed problem, as how to set the number of threads in HP-UX (C compiler ver: B.11.11.02) using OpenMp?
thanks in advance,
Praveen
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 02:50 AM
06-23-2003 02:50 AM
Re: Setting number of threads in OpenMP
B.11.11.02 has only a partial implementation of OpenMP. Version B.11.11.04 onwards has the full OpenMP 1.0 implementation. It is better to upgrade to the latest version of the compiler which at the time of this writing is B.11.11.06.
A better forum to ask questions on the HP-UX C Compiler is the hpux-devtools mailing list. You can subscribe to this list by sending mail to majordomo@cxx.cup.hp.com with the following in the body of the message:
subscribe hpux-devtools
Regards,
Lal
A better forum to ask questions on the HP-UX C Compiler is the hpux-devtools mailing list. You can subscribe to this list by sending mail to majordomo@cxx.cup.hp.com with the following in the body of the message:
subscribe hpux-devtools
Regards,
Lal
With God, all things are possible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 06:50 AM
06-23-2003 06:50 AM
Re: Setting number of threads in OpenMP
I am sure you have included omp.h.
The function you want would be
omp_set_num_threads(int n);
For example to have two threads you need to declare it as
omp_set_num_threads(2);
in your program
Hope this helps
The function you want would be
omp_set_num_threads(int n);
For example to have two threads you need to declare it as
omp_set_num_threads(2);
in your program
Hope this helps
The sufficiency of my merit is to know that my merit is NOT sufficient
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP