Dear all,
I have a problem using PGPROF to read profile data. My code is written in Fortran 90+OpenMPI. I added some OpenACC directives to my code. The CUDA Toolkit I used is CUDA9.0. Here is the script I used to submit my job:
#!/bin/bash
#PBS -N test7
#PBS -l select=1:ncpus=16:mpiprocs=16:ngpus=4:mem=120GB
#PBS -l walltime=24:00:00
#PBS -A hpce3__guo
#PBS -j oe
##PBS -q prod
#PBS -W group_list=hpce3__guo
#PBS -o log.txt
#ARGS=‘1380’
QSUB=‘/galileo/cineca/sysprod/pbs/default/bin/qsub’###################################################
Fix the SGE environment-handling bug (bash):
#source /usr/share/Modules/init/sh
#export -n -f moduleset path to mpirun
#module add mpi/openmpi-1.5.4-gcc-4.6.1
#module add mpi/openmpi-1.6.5-intel-14.0.2export PGI_ACC_TIME=1
module load profile/advanced
module load pgi/17.10
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/cineca/prod/compilers/pgi/17.10/none/linux86-64/2017/cuda/9.0/lib64
###################################################The command to run with mpiexec:
DIR=/galileo/home/userexternal/wguo0000/test7_convdiff_optimize_CUDA9.0/
cd $DIRThe MPI command to run:
mpirun pgprof --unified-memory-profiling off -o nvprof.%p.out $DIR/incompact3d
#mpirun -np 16 $DIR/incompact3d >> log.txt
#mpirun pgprof -o nvprof.%p.out $DIR/incompact3d################################################################################
The code runs well on GPU and it will also generate profile data. But when I try to import the profile data into PGPROF, the following error will occur:
“Unable to import PGPROF generated profile data.
You are trying to import unsupported data. Either use updated Visual Profiler or generate data using compatible version”
I tried different CUDA versions such as 7.5 and 8.0 but they all failed.
I also tested PGPROF using a simple code from OpenAcc lectures, the laplace2d.f90. This code doesn’t use Openmpi and the generated profile data can be imported into PGPROF. So I think maybe PGPROF in my cluster has some problem reading profile data from Openmpi code.
Could anybody tell me how to fix this? Thanks in advance!
Best regadrs,
Wentao Guo