Commit b461d520 authored by YdrMaster's avatar YdrMaster
Browse files

issue/63/style: 移除 #include 中相同路径的 "./"


Signed-off-by: default avatarYdrMaster <ydrml@hotmail.com>
parent b91cff79
......@@ -2,8 +2,8 @@
#define __INFINIOP_ATTENTION_H__
#include "../operator.h"
#include "./matmul.h"
#include "./swiglu.h"
#include "matmul.h"
#include "swiglu.h"
typedef InfiniopDescriptor *infiniopAttentionDescriptor_t;
......
......@@ -2,8 +2,8 @@
#define __INFINIOP_MLP_H__
#include "../operator.h"
#include "./matmul.h"
#include "./swiglu.h"
#include "matmul.h"
#include "swiglu.h"
typedef InfiniopDescriptor *infiniopMLPDescriptor_t;
......
......@@ -2,7 +2,7 @@
#define __INFINIOP_TENSOR_DESCRIPTOR__
#include "../infinicore.h"
#include "./status.h"
#include "status.h"
struct InfiniopTensorDescriptor {
// Datatype
......
#ifndef __ACLNN_TENSOR__
#define __ACLNN_TENSOR__
#include "./common_ascend.h"
#include "common_ascend.h"
#include "infiniop/operator.h"
#include <acl/acl.h>
#include <acl/acl_base.h>
......
#include "./common_cpu.h"
#include "common_cpu.h"
float f16_to_f32(uint16_t h) {
uint32_t sign = (h & 0x8000) << 16;
......
#include "./cpu_handle.h"
#include "cpu_handle.h"
infiniopStatus_t createCpuHandle(infiniopCpuHandle_t *handle_ptr) {
*handle_ptr = new InfiniopHandle{INFINI_DEVICE_CPU, 0};
......
#include "./common_cuda.cuh"
#include "common_cuda.cuh"
infiniopStatus_t createCudaHandle(infiniopCudaHandle_t *handle_ptr, infiniDevice_t cuda_device_type) {
// Create a new cublas handle pool
......
#include "infiniop/handle.h"
#ifdef ENABLE_CPU_API
#include "./cpu/cpu_handle.h"
#include "cpu/cpu_handle.h"
#endif
#ifdef ENABLE_CUDA_API
#include "./cuda/cuda_handle.h"
#include "cuda/cuda_handle.h"
#endif
#ifdef ENABLE_CAMBRICON_API
#include "./bang/bang_handle.h"
#include "bang/bang_handle.h"
#endif
#ifdef ENABLE_ASCEND_API
#include "./ascend/ascend_handle.h"
#include "ascend/ascend_handle.h"
#endif
__C infiniopStatus_t infiniopCreateHandle(infiniopHandle_t *handle_ptr,
......
#include "./matmul_cpu.h"
#include "matmul_cpu.h"
#include "../../../devices/cpu/common_cpu.h"
#include "../../../devices/cpu/cpu_handle.h"
......
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