CHAI icon indicating copy to clipboard operation
CHAI copied to clipboard

Build configuration with RAJA plugin enabled fails to add BLT stub

Open jhdavis8 opened this issue 2 years ago • 1 comments

When trying to build CHAI with the RAJA plugin enabled, I get the following CMake error:

CMake Error at blt/cmake/BLTMacros.cmake:550 (add_library):
  add_library cannot create target "blt_stub" because another target with the
  same name already exists.  The existing target is an interface library
  created in source directory
  "/home/jhdavis/repos/perf-port/BabelStream/CHAI/src/tpl/umpire".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  src/tpl/raja/cmake/SetupPackages.cmake:123 (blt_import_library)
  src/tpl/raja/CMakeLists.txt:118 (include)

The following steps reproduce the error:

git clone [email protected]:LLNL/CHAI.git
cd CHAI
git submodule update --init --recursive
mkdir build && cd build
cmake -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.6 -DENABLE_CUDA=ON -DENABLE_TESTS=Off -DENABLE_BENCHMARKS=Off -DCHAI_ENABLE_RAJA_PLUGIN=ON -DCMAKE_CUDA_ARCHITECTURES=86 ../

It seems like this might be related to this issue as well. I'm using CMake 3.22.1 and CUDA 11.6, and I'm cloning from the develop branch.

jhdavis8 avatar Jul 24 '23 19:07 jhdavis8

This will be fixed in the upcoming release (and develop) - for now, you can add the change to Umpire shown here https://github.com/LLNL/Umpire/commit/91ffd6fc85c63df4babd11b2253b863606ed651b to the umpire submodule.

davidbeckingsale avatar Jul 24 '23 21:07 davidbeckingsale

This should be fixed now.

adayton1 avatar Jun 26 '24 16:06 adayton1