4.6. Coupling LSF Job Submissions and ANSYS Licensing

You can couple your LSF job submission with ANSYS licensing by revising the LSF configuration files. Such a coupling will ensure that submitted jobs do not fail because licenses are not available. The jobs will be held in the queue until licenses are available. To set up such coupling, perform the following steps:

  1. Copy the elim script from your ANSYS installation area to $LSF_SERVERDIR. The elim script is located in the following directory:

    path/ansys_inc/v182/fluent/fluent18.2.0/multiport/mpi_wrapper/bin/

    where path is the directory in which you have installed ANSYS Fluent (e.g., /opt/apps/).

  2. Edit the copy of the elim script to add your license server and license feature details. The following is an example where acfd_fluent, acfd_par_proc, and anshpc are ANSYS solver and parallel license features:

    $ENV{'ANSYSLMD_LICENSE_FILE'} = "1055\@deva12"
    my @features = qw(acfd_fluent acfd_par_proc anshpc);
  3. Set the permissions to 755 and set root as the owner for the elim script.

  4. Add all of your ANSYS solver license feature names and ANSYS parallel/HPC license feature names under Resource section in the file lsf.shared, which is located in $LSF_ENVDIR in your LSF installation area. The following is an example in which acfd, acfd_fluent, acfd_solver, and acfd_fluent_solver are the ANSYS solver license feature names and anshpc, anshpc_pack, and acfd_par_proc are the ANSYS parallel/HPC license feature names.

    acfd Numeric 20 N (available ANSYS Fluent Solver licenses)
    acfd_fluent Numeric 20 N (available ANSYS Fluent Solver licenses)
    acfd_solver Numeric 20 N (available ANSYS Fluent Solver licenses)
    acfd_fluent_solver Numeric 20 N (available ANSYS Fluent Solver licenses)
    anshpc Numeric 20 N (available ANSYS Fluent Parallel licenses)
    anshpc_pack Numeric 20 N (available ANSYS Fluent Parallel licenses)
    acfd_par_proc Numeric 20 N (available ANSYS Fluent Parallel licenses)
    
  5. Add all of your ANSYS solver license feature names and ANSYS parallel/HPC license feature names in the file lsf.cluster.cluster_name (where cluster_name is the name of the cluster), which is located in $LSF_ENVDIR in your LSF installation area. The following is an example in which acfd, acfd_fluent, acfd_solver, and acfd_fluent_solver are the ANSYS solver license feature names and anshpc, anshpc_pack, and acfd_par_proc are the ANSYS parallel/HPC license feature names.

    # For LSF-ANSYS Licensing Coupling 
    Begin ResourceMap
    RESOURCENAME LOCATION
    acfd ([all])
    acfd_fluent ([all])
    acfd_solver ([all])
    acfd_fluent_solver ([all])
    anshpc ([all])
    anshpc_pack ([all])
    acfd_par_proc ([all])
    End ResourceMap
    
  6. Reconfigure the LSF daemons using the following commands, to specify that they reread their configuration. Note that you need administrator privileges to implement these changes.

    lsadmin reconfig

    badmin reconfig

  7. Submit the ANSYS Fluent job using the "select[solver_license_feature] rusage[parallel_license_feature]" option, as described in Submitting an ANSYS Fluent Job from the Command Line. In this option, solver_license_feature has the following form:

    serial_lic_name>0

    where serial_lic_name is the name of the serial ANSYS solver license feature name. Similarly, parallel_license_feature has the following form:

    parallel_lic_name=N

    where parallel_lic_name is the name of the ANSYS parallel/HPC license feature name, and N is the number of processes to use.

    The previous descriptions are applicable when you have a single serial and/or parallel license feature. If you have multiple serial and/or parallel license features, you must add additional solver_license_feature and/or parallel_license_feature entries, separating them with ||; additionally, you must enclose all of the solver_license_feature entries in a single pair of parentheses. The following is an example of submitting an ANSYS Fluent job in which acfd and acfd_fluent are the ANSYS solver license feature names, anshpc and acfd_par_proc are the ANSYS parallel/HPC license feature names, and the number of processes to use is 4:

    bsub -R "select[(acfd>0 || acfd_fluent>0)] rusage[anshpc=4 || acfd_par_proc=4]" -n 4 fluent 3d -t4 -peth -lsf


Release 18.2 - © ANSYS, Inc. All rights reserved.