Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiting Zhu <[email protected]>
  • Loading branch information
photoszzt committed Jun 16, 2021
1 parent 7f075af commit e12fda8
Show file tree
Hide file tree
Showing 26 changed files with 1,173 additions and 1,498 deletions.
4 changes: 2 additions & 2 deletions cava/samples/cuda_common_spec/cublas/blas1_unimplemented.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_CUBLAS1_UNIMPLEMENTED_H_
#define _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS1_UNIMPLEMENTED_H_
#include <cublas_v2.h>
#include <cublas_api.h>
#include <cublas_v2.h>

/* ---------------- CUBLAS BLAS1 functions ---------------- */
CUBLASAPI cublasStatus_t CUBLASWINAPI cublasNrm2Ex(cublasHandle_t handle, int n, const void *x, cudaDataType xType,
Expand Down Expand Up @@ -423,4 +423,4 @@ CUBLASAPI cublasStatus_t CUBLASWINAPI cublasRotmgEx(cublasHandle_t handle, void
ava_unsupported;
}

#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_CUBLAS1_UNIMPLEMENTED_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_CUBLAS1_UNIMPLEMENTED_H_
4 changes: 2 additions & 2 deletions cava/samples/cuda_common_spec/cublas/blas2_unimplemented.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS2_UNIMPLEMENTED_H_
#define _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS2_UNIMPLEMENTED_H_
#include <cublas_v2.h>
#include <cublas_api.h>
#include <cublas_v2.h>

/* --------------- CUBLAS BLAS2 functions ---------------- */

Expand Down Expand Up @@ -512,4 +512,4 @@ CUBLASAPI cublasStatus_t CUBLASWINAPI cublasZhpr2_v2(cublasHandle_t handle, cubl
ava_unsupported;
}

#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS2_UNIMPLEMENTED_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS2_UNIMPLEMENTED_H_
4 changes: 2 additions & 2 deletions cava/samples/cuda_common_spec/cublas/blas3.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS3_H_
#define _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS3_H_
#include <cublas_v2.h>
#include <cublas_api.h>
#include <cublas_v2.h>

/* --------------- CUBLAS BLAS3 functions ---------------- */
CUBLASAPI cublasStatus_t CUBLASWINAPI cublasGemmBatchedEx(cublasHandle_t handle, cublasOperation_t transa,
Expand Down Expand Up @@ -53,4 +53,4 @@ CUBLASAPI cublasStatus_t CUBLASWINAPI cublasGemmBatchedEx(cublasHandle_t handle,
}
}

#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS3_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS3_H_
4 changes: 2 additions & 2 deletions cava/samples/cuda_common_spec/cublas/blas3_unimplemented.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS3_UNIMPLEMENTED_H_
#define _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS3_UNIMPLEMENTED_H_
#include <cublas_v2.h>
#include <cublas_api.h>
#include <cublas_v2.h>

/* --------------- CUBLAS BLAS3 functions ---------------- */
CUBLASAPI cublasStatus_t CUBLASWINAPI cublasDgemm_v2(cublasHandle_t handle, cublasOperation_t transa,
Expand Down Expand Up @@ -534,4 +534,4 @@ CUBLASAPI cublasStatus_t CUBLASWINAPI cublasZgemmStridedBatched(
ava_unsupported;
}

#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS3_UNIMPLEMENTED_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS3_UNIMPLEMENTED_H_
5 changes: 2 additions & 3 deletions cava/samples/cuda_common_spec/cublas/blas_like_ext.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS_LIKE_EXT_H_
#define _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS_LIKE_EXT_H_
#include <cublas_v2.h>
#include <cublas_api.h>
#include <cublas_v2.h>

/* ---------------- CUBLAS BLAS-like extension ---------------- */
/* GEAM */
Expand Down Expand Up @@ -42,5 +42,4 @@ CUBLASAPI cublasStatus_t CUBLASWINAPI cublasSscal(cublasHandle_t handle, int n,
ava_argument(x) ava_opaque;
}


#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS_LIKE_EXT_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS_LIKE_EXT_H_
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS_LIKE_EXT_UNIMPLEMENTED_H_
#define _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS_LIKE_EXT_UNIMPLEMENTED_H_
#include <cublas_v2.h>
#include <cublas_api.h>
#include <cublas_v2.h>
/* ---------------- CUBLAS BLAS-like extension ---------------- */

CUBLASAPI cublasStatus_t CUBLASWINAPI cublasDgeam(cublasHandle_t handle, cublasOperation_t transa,
Expand Down Expand Up @@ -321,4 +321,4 @@ CUBLASAPI cublasStatus_t CUBLASWINAPI cublasZtrttp(cublasHandle_t handle, cublas
ava_unsupported;
}

#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS_LIKE_EXT_UNIMPLEMENTED_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_BLAS_LIKE_EXT_UNIMPLEMENTED_H_
6 changes: 3 additions & 3 deletions cava/samples/cuda_common_spec/cublas/cublas.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_H_
#define _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_H_

#include <cublas_v2.h>
#include <cublas_api.h>
#include <cublas_v2.h>
/* CUDABLAS API */

CUBLASAPI cublasStatus_t CUBLASWINAPI cublasCreate(cublasHandle_t *handle) {
Expand Down Expand Up @@ -56,12 +56,12 @@ EXPORTED CUBLASAPI cublasStatus_t CUBLASWINAPI cublasSetPointerMode_v2(cublasHan
}
ava_end_replacement;

#include "cublas_unimplemented.h"
#include "blas1_unimplemented.h"
#include "blas2_unimplemented.h"
#include "blas3.h"
#include "blas3_unimplemented.h"
#include "blas_like_ext.h"
#include "blas_like_ext_unimplemented.h"
#include "cublas_unimplemented.h"

#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_H_
4 changes: 2 additions & 2 deletions cava/samples/cuda_common_spec/cublas/cublas_unimplemented.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_UNIMPLEMENTED_H_
#define _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_UNIMPLEMENTED_H_
#include <cublas_v2.h>
#include <cublas_api.h>
#include <cublas_v2.h>
/* CUDABLAS API */

CUBLASAPI cublasStatus_t CUBLASWINAPI cublasGetAtomicsMode(cublasHandle_t handle, cublasAtomicsMode_t *mode) {
Expand Down Expand Up @@ -62,4 +62,4 @@ CUBLASAPI cublasStatus_t CUBLASWINAPI cublasHgemmStridedBatched(
ava_unsupported;
}

#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_UNIMPLEMENTED_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUBLAS_UNIMPLEMENTED_H_
2 changes: 1 addition & 1 deletion cava/samples/cuda_common_spec/cudart.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ __host__ cudaError_t CUDARTAPI cudaMemcpyFromSymbol(void *dst, const void *symbo
ava_argument(symbol) ava_opaque;
}

#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUDART_H_
#endif // _AVA_CAVA_SAMPLES_CUDA_COMMON_SPEC_CUDART_H_
2 changes: 1 addition & 1 deletion cava/samples/cuda_common_spec/cufft_unimplemented.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ cufftResult CUFFTAPI cufftDestroy(cufftHandle plan) { ava_unsupported; }
cufftResult CUFFTAPI cufftGetVersion(int *version) { ava_unsupported; }

cufftResult CUFFTAPI cufftGetProperty(libraryPropertyType type, int *value) { ava_unsupported; }
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUFFT_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUFFT_UNIMPLEMENTED_H_
3 changes: 1 addition & 2 deletions cava/samples/cuda_common_spec/curand.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ curandStatus_t CURANDAPI curandDestroyGenerator(curandGenerator_t generator) {
ava_argument(generator) ava_handle;
}


#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CURAND_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CURAND_H_
2 changes: 1 addition & 1 deletion cava/samples/cuda_common_spec/curand_unimplemented.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ curandStatus_t CURANDAPI curandGetScrambleConstants32(unsigned int **constants)

curandStatus_t CURANDAPI curandGetScrambleConstants64(unsigned long long **constants) { ava_unsupported; }

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CURAND_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CURAND_UNIMPLEMENTED_H_
4 changes: 2 additions & 2 deletions cava/samples/cuda_common_spec/cusolver_unimplemented.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSOLVER_UNIMPLEMENTED_H_
#define _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSOLVER_UNIMPLEMENTED_H_
#include <cusolver_common.h>
#include <cusolverDn.h>
#include <cusolver_common.h>

/******* cusolver *********/
cusolverStatus_t CUSOLVERAPI cusolverDnCreate(cusolverDnHandle_t *handle) { ava_unsupported; }
Expand Down Expand Up @@ -1499,4 +1499,4 @@ cusolverStatus_t CUSOLVERAPI cusolverDnZgesvdaStridedBatched(cusolverDnHandle_t
ava_unsupported;
}

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSOLVER_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSOLVER_UNIMPLEMENTED_H_
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,4 @@ cusparseStatus_t CUSPARSEAPI cusparseSpMM_bufferSize(cusparseHandle_t handle, cu
ava_unsupported;
}

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_CSR2CSC_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_CSR2CSC_UNIMPLEMENTED_H_
2 changes: 1 addition & 1 deletion cava/samples/cuda_common_spec/cusparse/cusparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ const char *CUSPARSEAPI cusparseGetErrorString(cusparseStatus_t status) {
}
}

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_H_
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,4 @@ cusparseStatus_t CUSPARSEAPI cusparseCreatePruneInfo(pruneInfo_t *info) { ava_un

cusparseStatus_t CUSPARSEAPI cusparseDestroyPruneInfo(pruneInfo_t info) { ava_unsupported; }


#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_UNIMPLEMENTED_H_
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,4 @@ cusparseStatus_t CUSPARSEAPI cusparseDpruneCsr2csrByPercentage(
ava_unsupported;
}

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_MATRIX_SORTING_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_MATRIX_SORTING_UNIMPLEMENTED_H_
Original file line number Diff line number Diff line change
Expand Up @@ -930,4 +930,4 @@ cusparseStatus_t CUSPARSEAPI cusparseZgpsvInterleavedBatch(cusparseHandle_t hand
int batchCount, void *pBuffer) {
ava_unsupported;
}
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_PRECONDITIONER_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_PRECONDITIONER_UNIMPLEMENTED_H_
Original file line number Diff line number Diff line change
Expand Up @@ -776,4 +776,4 @@ cusparseStatus_t CUSPARSEAPI cusparseZgebsr2gebsr(cusparseHandle_t handle, cuspa
ava_unsupported;
}

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_FORMAT_CONVERSION_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_FORMAT_CONVERSION_UNIMPLEMENTED_H_
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ cusparseStatus_t CUSPARSEAPI cusparseDroti(cusparseHandle_t handle, int nnz, dou
const double *c, const double *s, cusparseIndexBase_t idxBase) {
ava_unsupported;
}
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_LEVEL1_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_LEVEL1_UNIMPLEMENTED_H_
Original file line number Diff line number Diff line change
Expand Up @@ -495,4 +495,4 @@ cusparseStatus_t CUSPARSEAPI cusparseZhybsv_solve(cusparseHandle_t handle, cuspa
ava_unsupported;
}

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_LEVEL2_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_LEVEL2_UNIMPLEMENTED_H_
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,4 @@ cusparseStatus_t CUSPARSEAPI cusparseZbsrsm2_solve(
ava_unsupported;
}

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_LEVEL3_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_LEVEL3_UNIMPLEMENTED_H_
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@ cusparseStatus_t CUSPARSEAPI cusparseZcsrcolor(cusparseHandle_t handle, int m, i
ava_unsupported;
}

#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_LEVEL4_UNIMPLEMENTED_H_
#endif // _AVA_SAMPLES_CUDA_COMMON_SPEC_CUSPARSE_SPARSE_LEVEL4_UNIMPLEMENTED_H_
Loading

0 comments on commit e12fda8

Please sign in to comment.