Skip to content

Commit

Permalink
Define TensorMap for CUDA 11 (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
zasdfgbnm authored Sep 23, 2023
1 parent 493913e commit 8facc54
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions csrc/tma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ inline CUtensorMapFloatOOBfill getCUtensorMapFloatOOBfill(

using TensorMap = CUtensorMap;

#else

// Placeholder for CUDA 11 to make build pass
struct TensorMap {
alignas(64) uint64_t opaque[16];
};

#endif

std::ostream& operator<<(std::ostream& os, TensorMapInterleave interleave) {
Expand Down

0 comments on commit 8facc54

Please sign in to comment.