diff --git a/custom_ops/gpu_ops/helper.h b/custom_ops/gpu_ops/helper.h index b06ec0211..9b54c1128 100644 --- a/custom_ops/gpu_ops/helper.h +++ b/custom_ops/gpu_ops/helper.h @@ -717,6 +717,7 @@ inline bool getBoolEnv(char const *name) { bool getEnvEnablePDL(); +#ifndef PADDLE_WITH_COREX template inline void launchWithPdlWhenEnabled(KernelFn kernelFn, dim3 grid, @@ -738,3 +739,4 @@ inline void launchWithPdlWhenEnabled(KernelFn kernelFn, cudaLaunchKernelEx(&kernelConfig, kernelFn, std::forward(args)...); } +#endif