Including <complex> cause ICE on nvcc 13.3 with aarch64

Open Beginner friendly
#470 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp
Domain
compilers

Research direction

Start with submdspan_canonicalize_slices.hpp and submdspan_extents.hpp, then reproduce the issue using the reported nvcc -x cu -std=c++23 command in the nvcr.io/nvidia/cuda:13.3.1-devel-rockylinux9 container. Done means the unnecessary includes are removed and the command no longer causes the cicc compiler crash on aarch64.

Written by the indexing model from the issue text.

Description

The files submdspan_canonicalize_slices.hpp and submdspan_extents.hpp have #include <complex> without using it. This is a problem on GH200 (with aarch64), as nvcc -x cu -std=c++23 - <<< '#include <complex>' crashes the cicc compiler, at least on Cuda 13.3.1.

Removing the two #include <complex> manually compiles fine. Tested with this container: nvcr.io/nvidia/cuda:13.3.1-devel-rockylinux9.

Note that using an x86_64 nvcc does not crash.

Dominant language
C++
Stars
507
Forks
87
Avg merge
15h 27m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from kokkos/mdspan

All issues in kokkos/mdspan

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.