This PR introduces changes to include OpenACC device information in the log output from the mpas_framework_report_settings routine.
If MPAS is compiled with OPENACC=true, the mpas_framework_report_settings routine now calls a new private routine, report_acc_devices, in mpas_framework to report information about OpenACC devices to the log. The report_acc_devices routine uses the OpenACC runtime library to inquire about the number of available devices, the device number for the calling MPI task, and info about the device type and driver. As an example from Derecho with the NVHPC 24.3 compilers, the following information is reported in the log file:
OpenACC configuration:
Number of visible devices: 1
Device # for this MPI task: 0
Device vendor: NVIDIA
Device name: NVIDIA A100-SXM4-40GB
Device driver version: 12020
If MPAS is not compiled with OPENACC=true, then the report_acc_devices routine, and the call to it from mpas_framework_report_settings, are pre-processed out.
This PR introduces changes to include OpenACC device information in the log output from the
mpas_framework_report_settings
routine.If MPAS is compiled with
OPENACC=true
, thempas_framework_report_settings
routine now calls a new private routine,report_acc_devices
, inmpas_framework
to report information about OpenACC devices to the log. Thereport_acc_devices
routine uses the OpenACC runtime library to inquire about the number of available devices, the device number for the calling MPI task, and info about the device type and driver. As an example from Derecho with the NVHPC 24.3 compilers, the following information is reported in the log file:If MPAS is not compiled with
OPENACC=true
, then thereport_acc_devices
routine, and the call to it frommpas_framework_report_settings
, are pre-processed out.