Unverified Commit b6f8f8c3 authored by crapromer's avatar crapromer Committed by GitHub
Browse files

Merge pull request #706 from InfiniTensor/issue/704

issue/704 - Add ccl supprt for maca with mc api
parents 6dd619dd 6433bf2b
......@@ -2,8 +2,13 @@
#include "../../utils.h"
#ifdef ENABLE_METAX_MC_API
#include <mccl.h>
#include <mcr/mc_runtime_api.h>
#else
#include <hccl.h>
#include <hcr/hc_runtime_api.h>
#endif
#include <iostream>
#include <vector>
......
#ifndef INFINICCL_METAX_H_
#define INFINICCL_METAX_H_
#include "../../infiniop/devices/metax/metax_ht2mc.h"
#include "../infiniccl_impl.h"
#if defined(ENABLE_METAX_API) && defined(ENABLE_CCL)
......
......@@ -70,4 +70,19 @@
#define HCBLAS_GEMM_DEFAULT_TENSOR_OP MCBLAS_GEMM_DEFAULT_TENSOR_OP
#define hcblasGemmStridedBatchedEx mcblasGemmStridedBatchedEx
#define hcLaunchKernel mcLaunchKernel
#define hcclDataType_t mcclDataType_t
#define hcclRedOp_t mcclRedOp_t
#define hcclComm_t mcclComm_t
#define hcclFloat mcclFloat
#define hcclHalf mcclHalf
#define hcclBfloat16 mcclBfloat16
#define hcclSum mcclSum
#define hcclProd mcclProd
#define hcclMax mcclMax
#define hcclMin mcclMin
#define hcclAvg mcclAvg
#define hcclCommInitAll mcclCommInitAll
#define hcclSuccess mcclSuccess
#define hcclCommDestroy mcclCommDestroy
#define hcclAllReduce mcclAllReduce
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment