If you do the following on Aurora:
- 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
- Add THAPI-spack as a repo
git clone https://github.com/argonne-lcf/THAPI-spack.git
spack repo add ./THAPI-spack
- Install THAPI with
+test-variant for custom clinfo
spack install --concurrent-packages 2 -j32 thapi@develop+sync-daemon-mpi+archive+test-dependencies
- 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).
If you do the following on Aurora:
+test-variantfor customclinfoclinfowith and withoutiprofYou wil see that the
clinfooutput is different with and withoutiprof. The reason behindthe difference is that the
libOpenCL.soreturned by whichlib is not the samelibOpenCL.soRRATH'ed to
clinfobinary during the spack build (@TApplencourt and I verified this was theissue which causes the difference).