Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
51da6b7
modify cmake for warpctc and warprnnt
jxwangmetax Sep 16, 2025
b60cba2
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 16, 2025
1abea54
modify conv for tf32 and fp32
jxwangmetax Sep 16, 2025
fc63171
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 16, 2025
f26987f
modify conv kernel
jxwangmetax Sep 16, 2025
a0cb0a7
modify library to static library
jxwangmetax Sep 16, 2025
d6579b8
Merge branch 'develop' into develop
jxwangmetax Sep 16, 2025
9a9372b
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 16, 2025
9cd1f2e
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 16, 2025
fb902f4
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 17, 2025
7b018df
modify kernel
jxwangmetax Sep 17, 2025
e61cf0d
modify fused_bias_dropout_residual_layer_norm
jxwangmetax Sep 17, 2025
0e5be1a
Merge branch 'develop' into develop
jxwangmetax Sep 17, 2025
2757fb7
modify compile
jxwangmetax Sep 18, 2025
74a263a
Merge branch 'develop' of https://github.com/jxwangmetax/PaddleCustom…
jxwangmetax Sep 18, 2025
88d5eae
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 19, 2025
b2b41c2
modify blas
jxwangmetax Sep 19, 2025
6ea2fab
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 22, 2025
6556cce
modify blas
jxwangmetax Sep 22, 2025
1cbe0d8
modify blas
jxwangmetax Sep 22, 2025
554b3cb
modify blas
jxwangmetax Sep 22, 2025
dfac884
modify context
jxwangmetax Sep 22, 2025
5845b41
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 22, 2025
93f75b7
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 24, 2025
e7278d0
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 26, 2025
36aab9d
modify kernels
jxwangmetax Sep 26, 2025
01586f9
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 28, 2025
3531ed0
modify kernels
jxwangmetax Sep 29, 2025
f0562bb
Merge branch 'develop' into develop
jxwangmetax Sep 29, 2025
f9ab930
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 29, 2025
5ccb3ae
modify kernels
jxwangmetax Sep 29, 2025
21b4d24
Merge branch 'metax666:develop' into develop
jxwangmetax Sep 30, 2025
a974b6d
Merge branch 'metax666:develop' into develop
jxwangmetax Oct 9, 2025
e03a321
add print tensor
jxwangmetax Oct 11, 2025
c3310ab
Merge branch 'metax666:develop' into develop
jxwangmetax Oct 13, 2025
bb8e254
Merge branch 'metax666:develop' into develop
jxwangmetax Oct 14, 2025
f93a746
modify kernels
jxwangmetax Oct 20, 2025
d10d482
Merge branch 'develop' of https://github.com/jxwangmetax/PaddleCustom…
jxwangmetax Oct 20, 2025
ecad822
modify kernels
jxwangmetax Oct 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions backends/metax_gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ file(
CUDA_SRCS
# backends
${PADDLE_SOURCE_DIR}/paddle/phi/backends/gpu/cuda/cuda_info.cc
${PADDLE_SOURCE_DIR}/paddle/phi/backends/dynload/dynamic_loader.cc
${PADDLE_SOURCE_DIR}/paddle/phi/backends/dynload/cublas.cc
${PADDLE_SOURCE_DIR}/paddle/phi/backends/dynload/cublasLt.cc
${PADDLE_SOURCE_DIR}/paddle/phi/backends/dynload/cudnn.cc
${PADDLE_SOURCE_DIR}/paddle/phi/backends/dynload/cuda_driver.cc
${PADDLE_SOURCE_DIR}/paddle/phi/backends/gpu/cuda/cuda_graph.cc
# Core
Expand Down Expand Up @@ -697,7 +701,6 @@ file(
kernels/gpudnn/*.cu
kernels/cuda_kernels/*.cc
kernels/cuda_kernels/*.cu
kernels/funcs/blas/*.cc
kernels/ernie_core/*.cu)

set(CUSTOM_DEVICE_SRCS ${CUDA_SRCS} ${CC_SRCS} ${ERNIE_CORE_SRCS})
Expand Down Expand Up @@ -745,11 +748,28 @@ target_compile_definitions(
PUBLIC PADDLE_WITH_CUDA=1
PADDLE_WITH_CUSTOM_DEVICE=1
mcblasContext=cublasContext
cublasLtContext=mcblasLtContext
GPUContext=CustomContext
KPSContext=CustomContext
STREAM_TYPE=cudaStream_t
EVENT_TYPE=cudaEvent_t
EIGEN_USE_GPU=1)
EIGEN_USE_GPU=1
CUDA_LIB_NAME="libmcruntime.so"
BLAS_LIB_NAME="libmcblas.so"
BLASLT_LIB_NAME="libmcblasLt.so"
DNN_LIB_NAME="libmcdnn.so"
PTI_LIB_NAME="libmcpti.so"
RAND_LIB_NAME="libcurand.so"
JPEG_LIB_NAME="libnvjpeg.so"
SOLVER_LIB_NAME="libmcsolver.so"
SPARSE_LIB_NAME="libmcsparse.so"
RTC_LIB_NAME="libmcruntime.so"
FLASHATTN_LIB_NAME="libmcFlashAttn.so"
FLASHATTNV3_LIB_NAME="libflashattnv3.so"
CCL_LIB_NAME="libmccl.so"
FFT_LIB_NAME="libcufft.so"
SPARSELT_LIB_NAME="libcusparseLt.so"
CUPTI_LIB_PATH="/root/cu-bridge/CUDA_DIR/extras/CUPTI/lib64")

# packing wheel package
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
namespace cub = hipcub;
#endif

#include "kernels/funcs/blas/blas.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/backends/gpu/gpu_info.h"
#include "paddle/phi/backends/gpu/gpu_launch_config.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/blas/blas.h"
#include "paddle/phi/kernels/funcs/math_function.h"
#include "paddle/phi/kernels/primitive/functor_primitives.h"
#include "paddle/phi/kernels/transpose_kernel.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

#include <string>

#include "kernels/funcs/blas/blas.h"
#include "paddle/phi/backends/gpu/gpu_info.h"
#include "paddle/phi/backends/gpu/gpu_primitives.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/blas/blas.h"
#include "paddle/phi/kernels/funcs/eigen/common.h"

namespace phi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "../impl/matmul_grad_kernel_impl.h"
#include "paddle/phi/common/complex.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/matmul_grad_kernel_impl.h"
#include "paddle/phi/kernels/matmul_grad_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(matmul_grad,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License. */
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/common/complex.h"
#include "paddle/phi/core/kernel_registry.h"
#include "kernels/impl/matmul_kernel_impl.h"
#include "paddle/phi/kernels/impl/matmul_kernel_impl.h"


#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#include <algorithm>
#include <type_traits>

#include "kernels/funcs/blas/blas.h"
#include "paddle/common/errors.h"
#include "paddle/phi/core/enforce.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/core/tensor_utils.h"
#include "paddle/phi/kernels/funcs/blas/blas.h"
#include "paddle/phi/kernels/funcs/multihead_matmul_functor.h"

namespace phi {
Expand Down
19 changes: 0 additions & 19 deletions backends/metax_gpu/kernels/dynload/cupti_lib_path.h

This file was deleted.

Loading
Loading