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

hiop: raja (dep) build error on +cuda #268

Open
balay opened this issue Nov 28, 2024 · 0 comments
Open

hiop: raja (dep) build error on +cuda #268

balay opened this issue Nov 28, 2024 · 0 comments
Assignees

Comments

@balay
Copy link
Member

balay commented Nov 28, 2024

Not directly hiop issue - well raja is a dependency of hiop (also camp - that is triggering raja build failure) - so tagging hiop here.


 -       ^[email protected]%[email protected]+cuda~cusolver_lu~deepchecking~ginkgo~ipo~jsrun~kron+mpi+raja~rocm~shared~sparse build_system=cmake build_type=Release cuda_arch=70 generator=make arch=linux-ubuntu22.04-x86_64
 -           ^[email protected]%[email protected]+cuda~ipo~omptarget~openmp~rocm~sycl~tests build_system=cmake build_type=Release cuda_arch=70 generator=make patches=cb9e25b arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected] build_system=generic arch=linux-ubuntu22.04-x86_64
[+]              ^[email protected]%[email protected] build_system=generic arch=linux-ubuntu22.04-x86_64
 -           ^[email protected]%[email protected]+cuda~desul+examples+exercises~ipo~omptarget~omptask~openmp~plugins~rocm~run-all-tests~shared~sycl~tests~vectorization build_system=cmake build_type=Release cuda_arch=70 generator=make arch=linux-ubuntu22.04-x86_64

And the trigger is the change from spack/spack#47720

Log from prior to change:
spack-build-out-good.txt

Notice:

-- Found CUB: /scratch/svcpetsc/spack.a/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.4.0/cuda-11.7.1-nnyolmrglspl7fm2exxhwlhzplopqeuf/include

Log from after the above change:
spack-build-out-bad.txt

Notice:

-- Found CUB: /scratch/svcpetsc/spack.a/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.4.0/cub-2.1.0-jeuemk56wefipunpzgxndxhqusj7ybfj/include

So "reordering" dependencies - reorders the "include" path search - so a different version of cub is found - breaking build.

Perhaps the fix for this issue is to not have such duplicate copies of cub [when both cuda and cub are in dependency graph] - not sure how this can be added to spack.

For now - will work-around with ^raja~cuda

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

No branches or pull requests

3 participants