Skip to content

Spack installed clinfo changes behavior with iprof on Aurora #489

@thilinarmtb

Description

@thilinarmtb

If you do the following on Aurora:

  1. Setup spack
module load oneapi
git clone -c feature.manyFiles=true -b releases/latest https://github.com/spack/spack.git
spack/share/spack/setup-env.sh
spack compiler find
spack external find --all --exclude bzip2 --exclude xz
  1. Add THAPI-spack as a repo
git clone https://github.com/argonne-lcf/THAPI-spack.git
spack repo add ./THAPI-spack
  1. Install THAPI with +test-variant for custom clinfo
spack install --concurrent-packages 2 -j32 thapi@develop+sync-daemon-mpi+archive+test-dependencies
  1. Run clinfo with and without iprof
spack load thapi@develop+sync-daemon-mpi+archive+test-dependencies
clinfo > without_iprof.txt
iprof --no-analysis clinfo > with_iprof.txt
vimdiff without_iprof.txt with_iprof.txt

You wil see that the clinfo output is different with and without iprof. The reason behind
the difference is that the libOpenCL.so returned by whichlib is not the same libOpenCL.so
RRATH'ed to clinfo binary during the spack build (@TApplencourt and I verified this was the
issue which causes the difference).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions