Skip to content

Conversation

@XYenChi
Copy link
Collaborator

@XYenChi XYenChi commented Mar 29, 2025

No description provided.

XYenChi and others added 29 commits December 9, 2024 02:29
1. Port CustomOperator.def.
2. Add rounding mode.
3. Port tail policy.
4. Add intrinsic function prefix "__riscv_".
5. Fix CI.
1. Add rif-local dummy segment load store and other head file, todo: C++ decode
   part.
2. Update CustomOperator.def op_type. Append output and input nfields to avoid C++ part redefinition.
3. Add dummy rif codegen file
1. Fix CustomOperatore.def input_nfield part.
2. Add input tuple declaration.
1. Fix CustomOperatore.def input_nfield part.
2. Add input tuple declaration.
Add SegStoreOperation SegLoadOperation Miscellaneous in OpAttr
Copy link
Member

@lazyparser lazyparser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice (re)start.

现在有了一个同步代码的基础,要做以下的工作:

  1. 维持这个pr2不动
  2. 重新建立一个分支,拆分下,提交一个pr,不要包含 segment load store,我看看是否容易review一点
  3. 删除掉空行
  4. 删除掉脚本生成的文件
  5. 解释 rif-local 为什么需要存在
  6. 简化 build.yml
  7. 可以单独提交1个pr删除掉已经过时的测试用例(并更新构建文件)
  8. clang-format.yml 的修改可以单独一个pr提交

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 17)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -v --save-temps")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

调试用途的不用加入到代码中。在调用cmake的时候命令行添加即可。不要添加这个修改。

FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
URL https://github.com/google/googletest/archive/refs/tags/v1.16.0.zip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果原来的zip能work就不要修改。

V:=
endif

#qj add
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

作者信息体现在 git commit message 中,不要写在注释里。这是早年没有VCS版本管理工具的时候的做法。

|| (echo $(2) && exit 1)
endef

#define cmd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果不需要了,删除掉,而不是注释掉;以后如果要恢复,用git revert。

name: built
path: build

test:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

分成几次提交,先确保 build 阶段能正确work。test阶段先删除。

--has-policy
)
#qj add
set(GCC_TOOLCHAIN_PREFIX "/home/qjivy/work/toolchain/install-rif/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

硬编码的路径不要带开发者个人信息。

另外这个 set 默认应该是空的比较好,没有则报错。

set(GCC_TOOLCHAIN_PREFIX "/sifive/tools/riscv-tools/riscv64-unknown-linux-gnu-toolsuite-13.0.0-2021.11.5-x86_64-linux-redhat8")
set(COMPILER_TOOLCHAIN_PREFIX "/sifive/tools/riscv-tools/riscv64-unknown-linux-gnu-toolsuite-13.0.0-2021.11.5-x86_64-linux-redhat8")
set(GCC_TOOLCHAIN_PREFIX "/home/xyenchi/dragon/riscv-gnu-toolchain/rif/bin/")
set(COMPILER_TOOLCHAIN_PREFIX "/home/xyenchi/dragon/riscv-gnu-toolchain/rif/bin/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

硬编码的路径不要带开发者个人信息。

原有的代码看起来是硬编码了 CI workers 里的信息,开源之后应该更加一般化,要求用户在调用时候命令行指定。

set(FUZZ 1)
set(NODE 20)
set(LENGTH 500)
set(LENGTH 50)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么要修改 LENGTH?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不修改会生成测试数据太长。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件我记得是 rif-test 自动生成的。检查下如果是错误的添加的,删除掉。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么删除了这个文件?

@lazyparser lazyparser changed the title pr for sync [DO NOT MERGE] pr for sync Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants