Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using HPC licenses with MapdlPool #3136

Closed
germa89 opened this issue May 27, 2024 · 7 comments
Closed

Using HPC licenses with MapdlPool #3136

germa89 opened this issue May 27, 2024 · 7 comments
Assignees

Comments

@germa89
Copy link
Collaborator

germa89 commented May 27, 2024

Requested internally by @ayush-kumar-423

@germa89
Copy link
Collaborator Author

germa89 commented Jun 5, 2024

Main idea

We want to use MapdlPool (spawn multiple MAPDL instances), to use HPC licenses instead. So we do not require that many solver licenses.

Caveats

Probably this is not possible because HPC licenses hangs from a main MAPDL instance (use one solver license) which then spawns accross multiple processes or CPUs, using those HPC licenses.

Our usage is more focused on multiple MAPDL instances, hence each one will have a solver license. Presumably, the number of processes or CPUs won't grow enough to require HPC licenses.

I could be wrong with the reasoning though.

Ping @mikerife @pmaroneh @mcMunich for double check.

@germa89 germa89 self-assigned this Jun 5, 2024
@mcMunich
Copy link
Contributor

mcMunich commented Jun 7, 2024

I thought briefly about this.
What if you use pool or something to generate the input files (input_1.dat, input2.dat...), but don't solve, and then use some python multp thread/process to launch a bunch of simul solves?

@germa89
Copy link
Collaborator Author

germa89 commented Jul 15, 2024

I thought briefly about this. What if you use pool or something to generate the input files (input_1.dat, input2.dat...), but don't solve, and then use some python multp thread/process to launch a bunch of simul solves?

The problem is that launching simulation solves will consume licenses I guess. HPC licenses only allow you to utilize more cores, not more instances I believe. So I guess that to utilize HPC licenses, we just need to use many cores when using launch_mapdl:

mapdl = launch_mapdl(nproc=48)

@germa89
Copy link
Collaborator Author

germa89 commented Jul 15, 2024

Closing issue because it is not applicable.

@germa89 germa89 closed this as completed Jul 15, 2024
@adeebsaitBH
Copy link

Just a quick question! If I use mapdl = launch_mapdl(loglevel="ERROR", print_com=True, license_type="meba", run_location=save_dir, nproc=8, jobname="flexlok", override=True), how do I know if it is using and how many HPC licenses? A bit new to using PyMAPDL.

@germa89
Copy link
Collaborator Author

germa89 commented Jul 17, 2024

@mcMunich can you give us a hand here? I am not very familiar with the licensing.

@mikerife
Copy link

mikerife commented Jul 17, 2024

Hi @germa89 @mcMunich @adeebsaitBH
There are several answers to this depending on your setup. Licensing information is available on the license server; normally users do not have direct access to a license server, just the license admin does. The license admin can use the server side license application to generate a report showing your usage. Or even just look at the raw log and see what you have checked in/out recently.

If you happen to be the license admin, as well as a user, then you can use the server side license tool yourself.

If you are not an license admin but want an alternate answer, then you could dig into the client side license logs. 'Client' here means the computer that is running MAPDL (that PyMAPDL launched). There is a folder named .ansys in the temp folder that holds the client side logs. Each application (MAPDL, WB Mechanical, Fluent, etc) has its own log. On a MS Windows system if you enter the following on a File Explorer:
%temp%.ansys
And hit enter it will take you to that folder. The files have the naming convention "licdebug.computer name.application.version number.out" The file for MAPDL has application name of 'ANSYS'. These are text files.

The logs are pretty straight forward if you are just looking for check out/in. If you want to learn how to read all of the log, and are a commercial customer, please open a support case in the usual manner for you. The logs are really meant for the developers and technical support.
Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants