Ansys Products

Ansys Products

ANSYS Mechanical GPU Acceleration

    • kevjose
      Subscriber

      Hi,

      I am trying to set up GPU acceleration for my ANSYS Mechanical APDL scripts on the HPC in my university.

      I tried to run a GPU accelerated simulation in interactive GUI mode and it gave me this error message.

       *** ERROR ***                           CP =       6.139   TIME= 09:41:23
       The capability GPU was either not ordered with this ANSYS installation
       or the appropriate product was not selected for this session.
        Contact your ANSYS support person for more information.
      

      In batch mode I get a more cryptic error message:

      ** FATAL ***                           CP =       1.771   TIME= 10:13:10
      There was an error while initializing the GPU library.  Error code = 1.
        Please check your Mechanical APDL installation.  In many cases,
      simply rebooting your machine may help get past this error.
      

      I am using ansys 2020 R2

      Does anyone have any pointers?


      I had contacted the HPC staff at the university and this is the response I got from them:

      "Ansys were not able to answer my query but have suggested that you sign up to their support forum instead"


      Thanks!

      Kevin

    • George Karnos
      Ansys Employee
      When Starting ANSYS MAPDL, what license are you using?
      What GPU is installed on the HPC Machine?
      How are you starting MAPDL? Command line or launcher? (Command line contents?)
      Are you using RSM? If so, can you post the contents of the RSM Job Log?
    • kevjose
      Subscriber
      Hi I am running it on 40 processors so i request 4 regular and 36 HPC licences.
      #SBATCH -L aa_r@ansyslm:4,aa_r_hpc@ansyslm:36

      The GPU on the machine is Volta V100 Enterprise Compute GPUs.
      (I have tried setting ANSGPU_OVERRIDE = 1, but i have the same error)

      I have tried running MAPDL from both command line and interacative launcher. I get slighly different errors as shown in my original post. By batch I mean command line and interactive GUI i mean using the launcher.
      Command line contents:
      ansys202-b-accnvidia-dis-np$SLURM_NTASKS-jtempFiles-i../runOneLoop.ans-otempFiles.out
      I use this exact same command without "-acc nvidia" and it works perfectly.

      As far as i can tell RSM is for workbench. I am not using workbench.
    • Hunter Wang
      Ansys Employee
      "I tried to run a GPU accelerated simulation in interactive GUI mode and it gave me this error message."
      *** ERROR *** CP = 6.139 TIME= 09:41:23
      The capability GPU was either not ordered with this ANSYS installation
      or the appropriate product was not selected for this session.
      Contact your ANSYS support person for more information.
      Send the complete output message, please.
      For below error, follow the suggestion to reboot the machine. Also run /usr/bin/nvidia-smi to find installed NVIDIA driver version
      ** FATAL *** CP = 1.771 TIME= 10:13:10
      There was an error while initializing the GPU library. Error code = 1.
      Please check your Mechanical APDL installation. In many cases simply rebooting your machine may help get past this error.

    • kevjose
      Subscriber
      I am attaching the .out file that is generated when i run APDL from the command line. It was generated as tempFiles.out, I changed the format to text so it could be uploaded here.
      Since it is a distributed run, each processor also has its own out file also. I am attaching one of those also for reference (tempFiles1.txt).
      This is on a university HPC. Would the HPC admin need to reboot the whole cluster?


Viewing 4 reply threads
  • You must be logged in to reply to this topic.