NVIDIA / NVIDIA/cutlass

[BUG] Broken copy.hpp

Open
#1,508 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug inactive-30d inactive-90d
Dominant language
C++
Stars
10.5k
Forks
2.1k
Avg merge
3d 11h
Merged PRs (30d)
7

Description

Describe the bug
I can't compile cute/copy.hpp. Get error:
cutlass/include/cute/atom/copy_traits_sm90_tma.hpp(73): error: namespace "cute::detail" has no member "is_prefetch"

Steps/Code to reproduce bug
test.cu
#include <cute/algorithm/copy.hpp>

/usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -I/usr/local/cuda/include -Icontrib/cutlass/include -Icontrib/cutlass/tools/util/include -g --generate-code=arch=compute_89,code=[compute_89,sm_89] -x cu -c test.cu -o test.cu.o

contrib/cutlass/include/cute/atom/copy_traits_sm90_tma.hpp(71): error: namespace "cute::detail" has no member "is_prefetch"
      if constexpr (detail::is_prefetch<CopyOp>) {
                            ^

contrib/cutlass/include/cute/atom/copy_traits_sm90_tma.hpp(71): error: type name is not allowed
      if constexpr (detail::is_prefetch<CopyOp>) {
                                        ^

contrib/cutlass/include/cute/atom/copy_traits_sm90_tma.hpp(71): error: expected an expression
      if constexpr (detail::is_prefetch<CopyOp>) {
                                               ^

3 errors detected in the compilation of "test.cu".

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.

Research direction

Reproduce the failure with test.cu and the provided nvcc command, then inspect contrib/cutlass/include/cute/atom/copy_traits_sm90_tma.hpp around the detail::is_prefetch reference. Trace where the referenced trait is expected to be defined and verify that the include compiles without the reported errors.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.