Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CINN][New Hardware Update] standardize CINN_WITH_CUDA #64506

Merged

Conversation

DongBaiYue
Copy link
Contributor

@DongBaiYue DongBaiYue commented May 22, 2024

PR Category

CINN

PR Types

Improvements

Description

增强以宏CINN_WITH_CUDA为条件的分支。

  • 使用target.arch.Match(),以实现编译期错误提示。
  • 宏CINN_WITH_CUDA具有条件编译的功能,必要时保留。

pcard-79890

Copy link

paddle-bot bot commented May 22, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label May 22, 2024
@tc20042008 tc20042008 merged commit 8a3dc8b into PaddlePaddle:develop May 23, 2024
32 checks passed
#ifdef CINN_WITH_CUDA
optim::OptimizeExprGPU(&(funcs_after_schedule[i]->body));
optim::OptimizeExprGPU(&(funcs_after_schedule[i]->body));
Copy link
Contributor

Choose a reason for hiding this comment

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

既然ifdef CINN_WITH_CUDA都已经放到common::NVGPUArch这个alternative下了。最好把ifdef的else写全。

#ifdef CINN_WITH_CUDA
  ...
#else
  CINN_NOT_IMPLEMENTED();
#endif

Copy link
Contributor

Choose a reason for hiding this comment

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

下同。

co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 23, 2024
chen2016013 pushed a commit to chen2016013/Paddle that referenced this pull request May 26, 2024
@DongBaiYue DongBaiYue deleted the standardize_cinn_with_cuda branch July 24, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants