Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasAsumEx.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, int n, const void *x, cudaDataType x_type,
int incx, void *result, cudaDataType result_type,
cudaDataType execution_type) {
// Start
cublasAsumEx(handle /*cublasHandle_t*/, n /*int*/, x /*const void **/,
x_type /*cudaDataType*/, incx /*int*/, result /*void **/,
result_type /*cudaDataType*/, execution_type /*cudaDataType*/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasAsumEx_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, int64_t n, const void *x, cudaDataType x_type,
int64_t incx, void *result, cudaDataType result_type,
cudaDataType execution_type) {
// Start
cublasAsumEx_64(handle /*cublasHandle_t*/, n /*int64_t*/, x /*const void **/,
x_type /*cudaDataType*/, incx /*int64_t*/, result /*void **/,
result_type /*cudaDataType*/,
execution_type /*cudaDataType*/);
// End
}
14 changes: 14 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasAxpyEx_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, int64_t n, const void *alpha,
cudaDataType alphatype, const void *x, cudaDataType xtype,
int64_t incx, void *y, cudaDataType ytype, int64_t incy,
cudaDataType computetype) {
// Start
cublasAxpyEx_64(handle /*cublasHandle_t*/, n /*int64_t*/,
alpha /*const void **/, alphatype /*cudaDataType*/,
x /*const void **/, xtype /*cudaDataType*/, incx /*int64_t*/,
y /*void **/, ytype /*cudaDataType*/, incy /*int64_t*/,
computetype /*cudaDataType*/);
// End
}
14 changes: 14 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCgelsBatched.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasOperation_t trans, int m, int n,
int nrhs, cuComplex *const a_array[], int lda,
cuComplex *const c_array[], int ldc, int *info, int *dev_info_array,
int batch_size) {
// Start
cublasCgelsBatched(
handle /*cublasHandle_t*/, trans /*cublasOperation_t*/, m /*int*/,
n /*int*/, nrhs /*int*/, a_array /*cuComplex *const []*/, lda /*int*/,
c_array /*cuComplex *const []*/, ldc /*int*/, info /*int **/,
dev_info_array /*int **/, batch_size /*int*/);
// End
}
17 changes: 17 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCgemm3mEx.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasOperation_t trans_a,
cublasOperation_t trans_b, int m, int n, int k,
const cuComplex *alpha, const void *a, cudaDataType a_type, int lda,
const void *b, cudaDataType b_type, int ldb, const cuComplex *beta,
void *c, cudaDataType c_type, int ldc) {
// Start
cublasCgemm3mEx(handle /*cublasHandle_t*/, trans_a /*cublasOperation_t*/,
trans_b /*cublasOperation_t*/, m /*int*/, n /*int*/,
k /*int*/, alpha /*const cuComplex **/, a /*const void **/,
a_type /*cudaDataType*/, lda /*int*/, b /*const void **/,
b_type /*cudaDataType*/, ldb /*int*/,
beta /*const cuComplex **/, c /*void **/,
c_type /*cudaDataType*/, ldc /*int*/);
// End
}
17 changes: 17 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCgemm3mEx_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasOperation_t trans_a,
cublasOperation_t trans_b, int64_t m, int64_t n, int64_t k,
const cuComplex *alpha, const void *a, cudaDataType a_type,
int64_t lda, const void *b, cudaDataType b_type, int64_t ldb,
const cuComplex *beta, void *c, cudaDataType c_type, int64_t ldc) {
// Start
cublasCgemm3mEx_64(
handle /*cublasHandle_t*/, trans_a /*cublasOperation_t*/,
trans_b /*cublasOperation_t*/, m /*int64_t*/, n /*int64_t*/,
k /*int64_t*/, alpha /*const cuComplex **/, a /*const void **/,
a_type /*cudaDataType*/, lda /*int64_t*/, b /*const void **/,
b_type /*cudaDataType*/, ldb /*int64_t*/, beta /*const cuComplex **/,
c /*void **/, c_type /*cudaDataType*/, ldc /*int64_t*/);
// End
}
16 changes: 16 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCgemm3m_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasOperation_t transa,
cublasOperation_t transb, int64_t m, int64_t n, int64_t k,
const cuComplex *alpha, const cuComplex *a, int64_t lda,
const cuComplex *b, int64_t ldb, const cuComplex *beta, cuComplex *c,
int64_t ldc) {
// Start
cublasCgemm3m_64(
handle /*cublasHandle_t*/, transa /*cublasOperation_t*/,
transb /*cublasOperation_t*/, m /*int64_t*/, n /*int64_t*/, k /*int64_t*/,
alpha /*const cuComplex **/, a /*const cuComplex **/, lda /*int64_t*/,
b /*const cuComplex **/, ldb /*int64_t*/, beta /*const cuComplex **/,
c /*cuComplex **/, ldc /*int64_t*/);
// End
}
17 changes: 17 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCgemmEx_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasOperation_t trans_a,
cublasOperation_t trans_b, int64_t m, int64_t n, int64_t k,
const cuComplex *alpha, const void *a, cudaDataType a_type,
int64_t lda, const void *b, cudaDataType b_type, int64_t ldb,
const cuComplex *beta, void *c, cudaDataType c_type, int64_t ldc) {
// Start
cublasCgemmEx_64(handle /*cublasHandle_t*/, trans_a /*cublasOperation_t*/,
trans_b /*cublasOperation_t*/, m /*int64_t*/, n /*int64_t*/,
k /*int64_t*/, alpha /*const cuComplex **/,
a /*const void **/, a_type /*cudaDataType*/, lda /*int64_t*/,
b /*const void **/, b_type /*cudaDataType*/, ldb /*int64_t*/,
beta /*const cuComplex **/, c /*void **/,
c_type /*cudaDataType*/, ldc /*int64_t*/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCgerc_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, int64_t m, int64_t n, const cuComplex *alpha,
const cuComplex *x, int64_t incx, const cuComplex *y, int64_t incy,
cuComplex *a, int64_t lda) {
// Start
cublasCgerc_64(handle /*cublasHandle_t*/, m /*int64_t*/, n /*int64_t*/,
alpha /*const cuComplex **/, x /*const cuComplex **/,
incx /*int64_t*/, y /*const cuComplex **/, incy /*int64_t*/,
a /*cuComplex **/, lda /*int64_t*/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCgeru_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, int64_t m, int64_t n, const cuComplex *alpha,
const cuComplex *x, int64_t incx, const cuComplex *y, int64_t incy,
cuComplex *a, int64_t lda) {
// Start
cublasCgeru_64(handle /*cublasHandle_t*/, m /*int64_t*/, n /*int64_t*/,
alpha /*const cuComplex **/, x /*const cuComplex **/,
incx /*int64_t*/, y /*const cuComplex **/, incy /*int64_t*/,
a /*cuComplex **/, lda /*int64_t*/);
// End
}
15 changes: 15 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasChbmv_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
int64_t k, const cuComplex *alpha, const cuComplex *a, int64_t lda,
const cuComplex *x, int64_t incx, const cuComplex *beta, cuComplex *y,
int64_t incy) {
// Start
cublasChbmv_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, k /*int64_t*/, alpha /*const cuComplex **/,
a /*const cuComplex **/, lda /*int64_t*/,
x /*const cuComplex **/, incx /*int64_t*/,
beta /*const cuComplex **/, y /*cuComplex **/,
incy /*int64_t*/);
// End
}
14 changes: 14 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasChemv_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const cuComplex *alpha, const cuComplex *a, int64_t lda,
const cuComplex *x, int64_t incx, const cuComplex *beta, cuComplex *y,
int64_t incy) {
// Start
cublasChemv_64(
handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const cuComplex **/, a /*const cuComplex **/,
lda /*int64_t*/, x /*const cuComplex **/, incx /*int64_t*/,
beta /*const cuComplex **/, y /*cuComplex **/, incy /*int64_t*/);
// End
}
13 changes: 13 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCher2_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const cuComplex *alpha, const cuComplex *x, int64_t incx,
const cuComplex *y, int64_t incy, cuComplex *a, int64_t lda) {
// Start
cublasCher2_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const cuComplex **/,
x /*const cuComplex **/, incx /*int64_t*/,
y /*const cuComplex **/, incy /*int64_t*/, a /*cuComplex **/,
lda /*int64_t*/);
// End
}
11 changes: 11 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCher_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const float *alpha, const cuComplex *x, int64_t incx, cuComplex *a,
int64_t lda) {
// Start
cublasCher_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const float **/, x /*const cuComplex **/,
incx /*int64_t*/, a /*cuComplex **/, lda /*int64_t*/);
// End
}
13 changes: 13 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCherk3mEx.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t uplo, cublasOperation_t trans,
int n, int k, const float *alpha, const void *a, cudaDataType a_type,
int lda, const float *beta, void *c, cudaDataType c_type, int ldc) {
// Start
cublasCherk3mEx(handle /*cublasHandle_t*/, uplo /*cublasFillMode_t*/,
trans /*cublasOperation_t*/, n /*int*/, k /*int*/,
alpha /*const float **/, a /*const void **/,
a_type /*cudaDataType*/, lda /*int*/, beta /*const float **/,
c /*void **/, c_type /*cudaDataType*/, ldc /*int*/);
// End
}
15 changes: 15 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCherk3mEx_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t uplo, cublasOperation_t trans,
int64_t n, int64_t k, const float *alpha, const void *a,
cudaDataType a_type, int64_t lda, const float *beta, void *c,
cudaDataType c_type, int64_t ldc) {
// Start
cublasCherk3mEx_64(handle /*cublasHandle_t*/, uplo /*cublasFillMode_t*/,
trans /*cublasOperation_t*/, n /*int64_t*/, k /*int64_t*/,
alpha /*const float **/, a /*const void **/,
a_type /*cudaDataType*/, lda /*int64_t*/,
beta /*const float **/, c /*void **/,
c_type /*cudaDataType*/, ldc /*int64_t*/);
// End
}
13 changes: 13 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCherkEx.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t uplo, cublasOperation_t trans,
int n, int k, const float *alpha, const void *a, cudaDataType a_type,
int lda, const float *beta, void *c, cudaDataType c_type, int ldc) {
// Start
cublasCherkEx(handle /*cublasHandle_t*/, uplo /*cublasFillMode_t*/,
trans /*cublasOperation_t*/, n /*int*/, k /*int*/,
alpha /*const float **/, a /*const void **/,
a_type /*cudaDataType*/, lda /*int*/, beta /*const float **/,
c /*void **/, c_type /*cudaDataType*/, ldc /*int*/);
// End
}
15 changes: 15 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCherkEx_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t uplo, cublasOperation_t trans,
int64_t n, int64_t k, const float *alpha, const void *a,
cudaDataType a_type, int64_t lda, const float *beta, void *c,
cudaDataType c_type, int64_t ldc) {
// Start
cublasCherkEx_64(handle /*cublasHandle_t*/, uplo /*cublasFillMode_t*/,
trans /*cublasOperation_t*/, n /*int64_t*/, k /*int64_t*/,
alpha /*const float **/, a /*const void **/,
a_type /*cudaDataType*/, lda /*int64_t*/,
beta /*const float **/, c /*void **/,
c_type /*cudaDataType*/, ldc /*int64_t*/);
// End
}
14 changes: 14 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCherkx_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower,
cublasOperation_t trans, int64_t n, int64_t k, const cuComplex *alpha,
const cuComplex *a, int64_t lda, const cuComplex *b, int64_t ldb,
const float *beta, cuComplex *c, int64_t ldc) {
// Start
cublasCherkx_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
trans /*cublasOperation_t*/, n /*int64_t*/, k /*int64_t*/,
alpha /*const cuComplex **/, a /*const cuComplex **/,
lda /*int64_t*/, b /*const cuComplex **/, ldb /*int64_t*/,
beta /*const float **/, c /*cuComplex **/, ldc /*int64_t*/);
// End
}
13 changes: 13 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasChpmv_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const cuComplex *alpha, const cuComplex *a, const cuComplex *x,
int64_t incx, const cuComplex *beta, cuComplex *y, int64_t incy) {
// Start
cublasChpmv_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const cuComplex **/,
a /*const cuComplex **/, x /*const cuComplex **/,
incx /*int64_t*/, beta /*const cuComplex **/,
y /*cuComplex **/, incy /*int64_t*/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasChpr2_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const cuComplex *alpha, const cuComplex *x, int64_t incx,
const cuComplex *y, int64_t incy, cuComplex *a) {
// Start
cublasChpr2_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const cuComplex **/,
x /*const cuComplex **/, incx /*int64_t*/,
y /*const cuComplex **/, incy /*int64_t*/, a /*cuComplex **/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasChpr_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const float *alpha, const cuComplex *x, int64_t incx, cuComplex *a) {
// Start
cublasChpr_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const float **/, x /*const cuComplex **/,
incx /*int64_t*/, a /*cuComplex **/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCopyEx.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, int n, const void *x, cudaDataType x_type,
int incx, void *y, cudaDataType y_type, int incy) {
// Start
cublasCopyEx(handle /*cublasHandle_t*/, n /*int*/, x /*const void **/,
x_type /*cudaDataType*/, incx /*int*/, y /*void **/,
y_type /*cudaDataType*/, incy /*int*/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCopyEx_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, int64_t n, const void *x, cudaDataType x_type,
int64_t incx, void *y, cudaDataType y_type, int64_t incy) {
// Start
cublasCopyEx_64(handle /*cublasHandle_t*/, n /*int64_t*/, x /*const void **/,
x_type /*cudaDataType*/, incx /*int64_t*/, y /*void **/,
y_type /*cudaDataType*/, incy /*int64_t*/);
// End
}
14 changes: 14 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCsymv_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const cuComplex *alpha, const cuComplex *a, int64_t lda,
const cuComplex *x, int64_t incx, const cuComplex *beta, cuComplex *y,
int64_t incy) {
// Start
cublasCsymv_64(
handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const cuComplex **/, a /*const cuComplex **/,
lda /*int64_t*/, x /*const cuComplex **/, incx /*int64_t*/,
beta /*const cuComplex **/, y /*cuComplex **/, incy /*int64_t*/);
// End
}
13 changes: 13 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCsyr2_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const cuComplex *alpha, const cuComplex *x, int64_t incx,
const cuComplex *y, int64_t incy, cuComplex *a, int64_t lda) {
// Start
cublasCsyr2_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const cuComplex **/,
x /*const cuComplex **/, incx /*int64_t*/,
y /*const cuComplex **/, incy /*int64_t*/, a /*cuComplex **/,
lda /*int64_t*/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuBLAS/cublasCsyr_64.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cublas_v2.h"

void test(cublasHandle_t handle, cublasFillMode_t upper_lower, int64_t n,
const cuComplex *alpha, const cuComplex *x, int64_t incx,
cuComplex *a, int64_t lda) {
// Start
cublasCsyr_64(handle /*cublasHandle_t*/, upper_lower /*cublasFillMode_t*/,
n /*int64_t*/, alpha /*const cuComplex **/,
x /*const cuComplex **/, incx /*int64_t*/, a /*cuComplex **/,
lda /*int64_t*/);
// End
}
Loading