Skip to content

FlagTree0.4.0的TritonGPUAttrDefs.td有bug #473

@eeew4

Description

@eeew4

Describe the bug

编译时这里报错,需要添加getContigPerThread()才能编译成功,FlagTree0.4.0的documents/build_cn.md也需要修改,markdown中说明是使用ununtu20.04版本linux,实践需要22.04版本
原始

SmallVector<unsign>{....
}

修改后:

  let extraClassDeclaration = extraDistributedDeclaration # [{
    template<class T>
    SmallVector<T> paddedShape(ArrayRef<T> shape) const;

    SmallVector<unsigned> **getContigPerThread()** {
      auto parentLayout = mlir::cast<DistributedEncodingTrait>(getParent());
      auto parentContigPerThread = parentLayout.getContigPerThread();
      parentContigPerThread.erase(parentContigPerThread.begin() + getDim());
      return parentContigPerThread;
    };
  }];

Environment details

FlagTree:0.4.0
GPU:iluvatar MR-V100

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions