Skip to content

Conversation

@LiaoYFBH
Copy link
Contributor

@LiaoYFBH LiaoYFBH commented Dec 3, 2025

PR Category

Custom Device

PR Types

Improvements

Description

Standardize quantize_linear kernel and update backends/metax_gpu/CMakeLists.txt

@paddle-bot
Copy link

paddle-bot bot commented Dec 3, 2025

Thanks for your contribution!

@paddle-bot
Copy link

paddle-bot bot commented Dec 3, 2025

Thanks for your contribution!


#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/quantize_linear_kernel.cu" //NOLINT
#include "paddle/phi/kernels/impl/quantize_linear_impl.h"
Copy link
Member

Choose a reason for hiding this comment

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

目前有编译报错,原因是paddle/phi/kernels/quantize_linear_kernel.h头文件中声明不全,需要补充。同时需要去掉#include "paddle/phi/kernels/gpu/quantize_linear_kernel.cu"和#include "paddle/phi/kernels/impl/quantize_linear_impl.h",并且需要确保paddle/phi/kernels/gpu/quantize_linear_kernel.cu这个文件在cmakelists中已经编译。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants