-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I am trying to create a new project with both of the above as submodules. In https://github.com/frobnitzem/FastParticleToolkit I basically replicated the structure of ComputationalRadiationPhysics/picongpu, but left out PMacc. Something got lost in translation with the include/fpt/CMakeLists.txt though, since I always get some variant of:
CMake Error at $HOME/FastParticleToolkit/thirdParty/mallocMC/alpaka/CMakeLists.txt:108 (add_custom_target):
add_custom_target cannot create target "alpakaIde" because another target
with the same name already exists. The existing target is a custom target
created in source directory
"$HOME/FastParticleToolkit/include/fpt". See
documentation for policy CMP0002 for more details.
-- Found mallocMC: $HOME/FastParticleToolkit/thirdParty/mallocMC/src (found suitable version "2.6.0", minimum required is "2.3.0")
It seems the issue is that cupla links to alpaka and defines alpakaIde first. Then, mallocMC tries the same trick and fails. I can't set mallocMC to "use external alpaka" since the 2 alpaka versions are different. So I have too many alpakas.
code:
git clone --recursive https://github.com/frobnitzem/FastParticleToolkit
FastParticleToolkit/bin/FPT-create.sh experiment
cd experiment
../FastParticleToolkit/bin/FPT-build.sh
sbastrakov