Skip to content

Commit 09cb6ea

Browse files
authored
[SYCLomatic] Add query-api-mapping for 117 more cublas APIs (#2800)
Signed-off-by: Jiang, Zhiwei <zhiwei.jiang@intel.com>
1 parent f5fff21 commit 09cb6ea

File tree

125 files changed

+2736
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+2736
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, int n, const void *x, cudaDataType x_type,
4+
int incx, void *result, cudaDataType result_type,
5+
cudaDataType execution_type) {
6+
// Start
7+
cublasAsumEx(handle /*cublasHandle_t*/, n /*int*/, x /*const void **/,
8+
x_type /*cudaDataType*/, incx /*int*/, result /*void **/,
9+
result_type /*cudaDataType*/, execution_type /*cudaDataType*/);
10+
// End
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, int64_t n, const void *x, cudaDataType x_type,
4+
int64_t incx, void *result, cudaDataType result_type,
5+
cudaDataType execution_type) {
6+
// Start
7+
cublasAsumEx_64(handle /*cublasHandle_t*/, n /*int64_t*/, x /*const void **/,
8+
x_type /*cudaDataType*/, incx /*int64_t*/, result /*void **/,
9+
result_type /*cudaDataType*/,
10+
execution_type /*cudaDataType*/);
11+
// End
12+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, int64_t n, const void *alpha,
4+
cudaDataType alphatype, const void *x, cudaDataType xtype,
5+
int64_t incx, void *y, cudaDataType ytype, int64_t incy,
6+
cudaDataType computetype) {
7+
// Start
8+
cublasAxpyEx_64(handle /*cublasHandle_t*/, n /*int64_t*/,
9+
alpha /*const void **/, alphatype /*cudaDataType*/,
10+
x /*const void **/, xtype /*cudaDataType*/, incx /*int64_t*/,
11+
y /*void **/, ytype /*cudaDataType*/, incy /*int64_t*/,
12+
computetype /*cudaDataType*/);
13+
// End
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, cublasOperation_t trans, int m, int n,
4+
int nrhs, cuComplex *const a_array[], int lda,
5+
cuComplex *const c_array[], int ldc, int *info, int *dev_info_array,
6+
int batch_size) {
7+
// Start
8+
cublasCgelsBatched(
9+
handle /*cublasHandle_t*/, trans /*cublasOperation_t*/, m /*int*/,
10+
n /*int*/, nrhs /*int*/, a_array /*cuComplex *const []*/, lda /*int*/,
11+
c_array /*cuComplex *const []*/, ldc /*int*/, info /*int **/,
12+
dev_info_array /*int **/, batch_size /*int*/);
13+
// End
14+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, cublasOperation_t trans_a,
4+
cublasOperation_t trans_b, int m, int n, int k,
5+
const cuComplex *alpha, const void *a, cudaDataType a_type, int lda,
6+
const void *b, cudaDataType b_type, int ldb, const cuComplex *beta,
7+
void *c, cudaDataType c_type, int ldc) {
8+
// Start
9+
cublasCgemm3mEx(handle /*cublasHandle_t*/, trans_a /*cublasOperation_t*/,
10+
trans_b /*cublasOperation_t*/, m /*int*/, n /*int*/,
11+
k /*int*/, alpha /*const cuComplex **/, a /*const void **/,
12+
a_type /*cudaDataType*/, lda /*int*/, b /*const void **/,
13+
b_type /*cudaDataType*/, ldb /*int*/,
14+
beta /*const cuComplex **/, c /*void **/,
15+
c_type /*cudaDataType*/, ldc /*int*/);
16+
// End
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, cublasOperation_t trans_a,
4+
cublasOperation_t trans_b, int64_t m, int64_t n, int64_t k,
5+
const cuComplex *alpha, const void *a, cudaDataType a_type,
6+
int64_t lda, const void *b, cudaDataType b_type, int64_t ldb,
7+
const cuComplex *beta, void *c, cudaDataType c_type, int64_t ldc) {
8+
// Start
9+
cublasCgemm3mEx_64(
10+
handle /*cublasHandle_t*/, trans_a /*cublasOperation_t*/,
11+
trans_b /*cublasOperation_t*/, m /*int64_t*/, n /*int64_t*/,
12+
k /*int64_t*/, alpha /*const cuComplex **/, a /*const void **/,
13+
a_type /*cudaDataType*/, lda /*int64_t*/, b /*const void **/,
14+
b_type /*cudaDataType*/, ldb /*int64_t*/, beta /*const cuComplex **/,
15+
c /*void **/, c_type /*cudaDataType*/, ldc /*int64_t*/);
16+
// End
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, cublasOperation_t transa,
4+
cublasOperation_t transb, int64_t m, int64_t n, int64_t k,
5+
const cuComplex *alpha, const cuComplex *a, int64_t lda,
6+
const cuComplex *b, int64_t ldb, const cuComplex *beta, cuComplex *c,
7+
int64_t ldc) {
8+
// Start
9+
cublasCgemm3m_64(
10+
handle /*cublasHandle_t*/, transa /*cublasOperation_t*/,
11+
transb /*cublasOperation_t*/, m /*int64_t*/, n /*int64_t*/, k /*int64_t*/,
12+
alpha /*const cuComplex **/, a /*const cuComplex **/, lda /*int64_t*/,
13+
b /*const cuComplex **/, ldb /*int64_t*/, beta /*const cuComplex **/,
14+
c /*cuComplex **/, ldc /*int64_t*/);
15+
// End
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, cublasOperation_t trans_a,
4+
cublasOperation_t trans_b, int64_t m, int64_t n, int64_t k,
5+
const cuComplex *alpha, const void *a, cudaDataType a_type,
6+
int64_t lda, const void *b, cudaDataType b_type, int64_t ldb,
7+
const cuComplex *beta, void *c, cudaDataType c_type, int64_t ldc) {
8+
// Start
9+
cublasCgemmEx_64(handle /*cublasHandle_t*/, trans_a /*cublasOperation_t*/,
10+
trans_b /*cublasOperation_t*/, m /*int64_t*/, n /*int64_t*/,
11+
k /*int64_t*/, alpha /*const cuComplex **/,
12+
a /*const void **/, a_type /*cudaDataType*/, lda /*int64_t*/,
13+
b /*const void **/, b_type /*cudaDataType*/, ldb /*int64_t*/,
14+
beta /*const cuComplex **/, c /*void **/,
15+
c_type /*cudaDataType*/, ldc /*int64_t*/);
16+
// End
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, int64_t m, int64_t n, const cuComplex *alpha,
4+
const cuComplex *x, int64_t incx, const cuComplex *y, int64_t incy,
5+
cuComplex *a, int64_t lda) {
6+
// Start
7+
cublasCgerc_64(handle /*cublasHandle_t*/, m /*int64_t*/, n /*int64_t*/,
8+
alpha /*const cuComplex **/, x /*const cuComplex **/,
9+
incx /*int64_t*/, y /*const cuComplex **/, incy /*int64_t*/,
10+
a /*cuComplex **/, lda /*int64_t*/);
11+
// End
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include "cublas_v2.h"
2+
3+
void test(cublasHandle_t handle, int64_t m, int64_t n, const cuComplex *alpha,
4+
const cuComplex *x, int64_t incx, const cuComplex *y, int64_t incy,
5+
cuComplex *a, int64_t lda) {
6+
// Start
7+
cublasCgeru_64(handle /*cublasHandle_t*/, m /*int64_t*/, n /*int64_t*/,
8+
alpha /*const cuComplex **/, x /*const cuComplex **/,
9+
incx /*int64_t*/, y /*const cuComplex **/, incy /*int64_t*/,
10+
a /*cuComplex **/, lda /*int64_t*/);
11+
// End
12+
}

0 commit comments

Comments
 (0)