Skip to content

CMake find_package issue for rocprofiler-sdk in 2.14.0 #729

@tdrwenski

Description

@tdrwenski

When using 2.14.0 with RajaPerf and Spack, I encountered in the CI:

CMake Error at /g/g14/drwenski1/projects/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placehol/llvm-amdgpu-6.4.1/caliper-2.14.0-uwvcbm7fvu2u3l4nnsmrfyepngcv5jgn/share/cmake/caliper/caliper-targets.cmake:61 (set_target_properties):
  The link interface of target "caliper" contains:

    rocprofiler-sdk::rocprofiler-sdk

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.
   
Call Stack (most recent call first):
  /g/g14/drwenski1/projects/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placehol/llvm-amdgpu-6.4.1/caliper-2.14.0-uwvcbm7fvu2u3l4nnsmrfyepngcv5jgn/share/cmake/caliper/caliper-config.cmake:29 (include)
  CMakeLists.txt:220 (find_package)


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

I can reproduce this simpler on Tuo with radiuss-spack-configs environment like:

$ cd radiuss-spack-configs
$ spack env activate toss_4_x86_64_ib_cray 
$ spack add raja-perf@develop~shared +rocm +openmp +caliper amdgpu_target=gfx942 %rocmcc@=6.4.1 ^hip@6.4.1 ^caliper@2.14.0~shared~libunwind ^adiak~shared~mpi 
==> Adding raja-perf@develop+caliper+openmp+rocm~shared amdgpu_target=gfx942 %rocmcc@=6.4.1 ^adiak~mpi~shared ^caliper@2.14.0~libunwind~shared ^hip@6.4.1 to environment /g/g14/drwenski1/projects/radiuss-spack-configs/toss_4_x86_64_ib_cray
$ spack install -f

@adrienbernede

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