Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build configuration with RAJA plugin enabled fails to add BLT stub #233

Closed
jhdavis8 opened this issue Jul 24, 2023 · 2 comments
Closed

Build configuration with RAJA plugin enabled fails to add BLT stub #233

jhdavis8 opened this issue Jul 24, 2023 · 2 comments

Comments

@jhdavis8
Copy link

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.

@davidbeckingsale
Copy link
Member

This will be fixed in the upcoming release (and develop) - for now, you can add the change to Umpire shown here LLNL/Umpire@91ffd6f to the umpire submodule.

@adayton1
Copy link
Member

This should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants