ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
431 stars 121 forks source link

Note on the docker container output #1213

Closed germa89 closed 2 years ago

germa89 commented 2 years ago

Hi

While running v21.2.0 in GitHub Actions (as a service), I saw the following note:

 **********************************************************************************
 NOTE: Error occurred while setting the thread affinity on Linux.  Error code = 22.
 **********************************************************************************

I wonder if it is relevant or not.

Notes

Pinging @akaszynski @FredAns @koubaa @dts12263 for visibility.

Full log

well, not full


 *** WARNING ***                         CP =       0.293   TIME= 15:28:41
 MISSING DOCUMENTATION FILE                                              
  DOCU LIST FILE = /ansys_inc/v212/ansys/gui/en-us/                      
  MISSING FILE NAME = /ansys_inc/v212/ansys/gui/en-us/.                  

          *****  ANSYS COMMAND LINE ARGUMENTS  *****
  NONE

 RELEASE= 2021 R2              BUILD= 21.2BETA  UP20210517   VERSION=LINUX x64   
 CURRENT JOBNAME=file0  15:28:41  JUN 20, 2022 CP=      0.294

 Start GRPC Server

 ##############################
 ### START GRPC SERVER      ###
 ##############################

 Server Executable   : MapdlGrpc.Server
 Server listening on : 0.0.0.0:50052

 *** WARNING ***                         CP =       0.407   TIME= 15:29:59
 Altering the abort level key is not recommended.                        

 NUMBER OF DISPLAYED ERRORS ALLOWED PER COMMAND=                 20
 NUMBER OF ERRORS ALLOWED PER COMMAND BEFORE ANSYS ABORT=     10000
 ABORT LEVEL KEY= -1
 ALL ERRORS WRITTEN TO /file0.err                                                                                                                                                                                                                                                          
 DO NOT TERMINATE /INPUT UPON FIRST ERROR

 /OUTPUT FILE= anstmp

 CLEAR ANSYS DATABASE AND RESTART

 Ansys Mechanical Enterprise                       

 **********************************************************************************
 NOTE: Error occurred while setting the thread affinity on Linux.  Error code = 22.
 **********************************************************************************

 *** ANSYS - ENGINEERING ANALYSIS SYSTEM  RELEASE 2021 R2          21.2BETA ***
 DISTRIBUTED Ansys Mechanical Enterprise                       

 00000000  VERSION=LINUX x64     15:29:59  JUN 20, 2022 CP=      0.530

 ** WARNING: PRE-RELEASE VERSION OF ANSYS 21.2BETA
  ANSYS,INC TESTING IS NOT COMPLETE - CHECK RESULTS CAREFULLY **

          ***** ANSYS ANALYSIS DEFINITION (PREP7) *****

 /OUTPUT FILE= anstmp
mikerife commented 2 years ago

@germa89 Try setting the environment variable KMP_AFFINITY=disabled prior to launching MAPDL. Mike

germa89 commented 2 years ago

@germa89 Try setting the environment variable KMP_AFFINITY=disabled prior to launching MAPDL. Mike

Hi @mikerife

Thank you for your answer. Is there any reason for that note though? It might be a good trade off for something.

Regards

mikerife commented 2 years ago

Hi @germa89 Just prior SRs on that error message. Have run into this oh once a year or so. It used to, v18.0, cause MAPDL to fatal error exit. So my first reaction is to just disable and go from there.

germa89 commented 2 years ago

Hi @mikerife

Thank you for the info. It seems it is a way to cluster threads: https://cvw.cac.cornell.edu/hybrid/kmpaffinity

I think I am going to disable it

mikerife commented 2 years ago

HI @germa89 yes it is; normally we leave it to the job scheduler to set any needed thread-core pairing/ordering.

germa89 commented 2 years ago

We should probably link this info to here:

https://dev.docs.ansys.com/contents/ansys_best_practices/containers/mpi_containers.html

Although I know it's different issue...

germa89 commented 2 years ago

Close to work in #1251