Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCLomatic] Add query-api-mapping support for 209 cuSolver APIs #1964

Merged
merged 11 commits into from
May 10, 2024
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgebrd.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, int m, int n, cuComplex *a, int lda,
float *d, float *e, cuComplex *tau_q, cuComplex *tau_p,
cuComplex *buffer, int buffer_size, int *info) {
// Start
cusolverDnCgebrd(handle /*cusolverDnHandle_t*/, m /*int*/, n /*int*/,
a /*cuComplex **/, lda /*int*/, d /*float **/, e /*float **/,
tau_q /*cuComplex **/, tau_p /*cuComplex **/,
buffer /*cuComplex **/, buffer_size /*int*/, info /*int **/);
// End
}
9 changes: 9 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgebrd_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, int m, int n) {
// Start
int buffer_size;
cusolverDnCgebrd_bufferSize(handle /*cusolverDnHandle_t*/, m /*int*/,
n /*int*/, &buffer_size /*int **/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgeqrf.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, int m, int n, cuComplex *a, int lda,
cuComplex *tau, cuComplex *buffer, int buffer_size, int *info) {
// Start
cusolverDnCgeqrf(handle /*cusolverDnHandle_t*/, m /*int*/, n /*int*/,
a /*cuComplex **/, lda /*int*/, tau /*cuComplex **/,
buffer /*cuComplex **/, buffer_size /*int*/, info /*int **/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgeqrf_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, int m, int n, cuComplex *a, int lda) {
// Start
int buffer_size;
cusolverDnCgeqrf_bufferSize(handle /*cusolverDnHandle_t*/, m /*int*/,
n /*int*/, a /*cuComplex **/, lda /*int*/,
&buffer_size /*int **/);
// End
}
15 changes: 15 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgesvd.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, signed char jobu, signed char jobvt, int m,
int n, cuComplex *a, int lda, float *s, cuComplex *u, int ldu,
cuComplex *vt, int ldvt, cuComplex *buffer, int buffer_size,
float *buffer_for_real, int *info) {
// Start
cusolverDnCgesvd(handle /*cusolverDnHandle_t*/, jobu /*signed char*/,
jobvt /*signed char*/, m /*int*/, n /*int*/,
a /*cuComplex **/, lda /*int*/, s /*float **/,
u /*cuComplex **/, ldu /*int*/, vt /*cuComplex **/,
ldvt /*int*/, buffer /*cuComplex **/, buffer_size /*int*/,
buffer_for_real /*float **/, info /*int **/);
// End
}
9 changes: 9 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgesvd_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, int m, int n) {
// Start
int buffer_size;
cusolverDnCgesvd_bufferSize(handle /*cusolverDnHandle_t*/, m /*int*/,
n /*int*/, &buffer_size /*int **/);
// End
}
15 changes: 15 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgesvdj.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigMode_t jobz, int econ, int m,
int n, cuComplex *a, int lda, float *s, cuComplex *u, int ldu,
cuComplex *v, int ldv, cuComplex *buffer, int buffer_size, int *info,
gesvdjInfo_t params) {
// Start
cusolverDnCgesvdj(handle /*cusolverDnHandle_t*/, jobz /*cusolverEigMode_t*/,
econ /*int*/, m /*int*/, n /*int*/, a /*cuComplex **/,
lda /*int*/, s /*float **/, u /*cuComplex **/, ldu /*int*/,
v /*cuComplex **/, ldv /*int*/, buffer /*cuComplex **/,
buffer_size /*int*/, info /*int **/,
params /*gesvdjInfo_t*/);
// End
}
16 changes: 16 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgesvdj_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigMode_t jobz, int econ, int m,
int n, const cuComplex *a, int lda, const float *s,
const cuComplex *u, int ldu, const cuComplex *v, int ldv,
gesvdjInfo_t params) {
// Start
int buffer_size;
cusolverDnCgesvdj_bufferSize(
handle /*cusolverDnHandle_t*/, jobz /*cusolverEigMode_t*/, econ /*int*/,
m /*int*/, n /*int*/, a /*const cuComplex **/, lda /*int*/,
s /*const float **/, u /*const cuComplex **/, ldu /*int*/,
v /*const cuComplex **/, ldv /*int*/, &buffer_size /*int **/,
params /*gesvdjInfo_t*/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgetrf.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, int m, int n, cuComplex *a, int lda,
cuComplex *buffer, int *ipiv, int *info) {
// Start
cusolverDnCgetrf(handle /*cusolverDnHandle_t*/, m /*int*/, n /*int*/,
a /*cuComplex **/, lda /*int*/, buffer /*cuComplex **/,
ipiv /*int **/, info /*int **/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgetrf_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, int m, int n, cuComplex *a, int lda) {
// Start
int buffer_size;
cusolverDnCgetrf_bufferSize(handle /*cusolverDnHandle_t*/, m /*int*/,
n /*int*/, a /*cuComplex **/, lda /*int*/,
&buffer_size /*int **/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCgetrs.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cublasOperation_t trans, int n, int nrhs,
const cuComplex *a, int lda, const int *ipiv, cuComplex *b, int ldb,
int *info) {
// Start
cusolverDnCgetrs(handle /*cusolverDnHandle_t*/, trans /*cublasOperation_t*/,
n /*int*/, nrhs /*int*/, a /*const cuComplex **/,
lda /*int*/, ipiv /*const int **/, b /*cuComplex **/,
ldb /*int*/, info /*int **/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCheevd.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigMode_t jobz,
cublasFillMode_t uplo, int n, cuComplex *a, int lda, float *w,
cuComplex *buffer, int buffer_size, int *info) {
// Start
cusolverDnCheevd(handle /*cusolverDnHandle_t*/, jobz /*cusolverEigMode_t*/,
uplo /*cublasFillMode_t*/, n /*int*/, a /*cuComplex **/,
lda /*int*/, w /*float **/, buffer /*cuComplex **/,
buffer_size /*int*/, info /*int **/);
// End
}
13 changes: 13 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCheevd_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigMode_t jobz,
cublasFillMode_t uplo, int n, const cuComplex *a, int lda,
const float *w) {
// Start
int buffer_size;
cusolverDnCheevd_bufferSize(
handle /*cusolverDnHandle_t*/, jobz /*cusolverEigMode_t*/,
uplo /*cublasFillMode_t*/, n /*int*/, a /*const cuComplex **/,
lda /*int*/, w /*const float **/, &buffer_size /*int **/);
// End
}
15 changes: 15 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCheevdx.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigMode_t jobz,
cusolverEigRange_t range, cublasFillMode_t uplo, int n, cuComplex *a,
int lda, float vl, float vu, int il, int iu, int *h_meig, float *w,
cuComplex *buffer, int buffer_size, int *info) {
// Start
cusolverDnCheevdx(handle /*cusolverDnHandle_t*/, jobz /*cusolverEigMode_t*/,
range /*cusolverEigRange_t*/, uplo /*cublasFillMode_t*/,
n /*int*/, a /*cuComplex **/, lda /*int*/, vl /*float*/,
vu /*float*/, il /*int*/, iu /*int*/, h_meig /*int **/,
w /*float **/, buffer /*cuComplex **/, buffer_size /*int*/,
info /*int **/);
// End
}
16 changes: 16 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCheevdx_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigMode_t jobz,
cusolverEigRange_t range, cublasFillMode_t uplo, int n,
const cuComplex *a, int lda, float vl, float vu, int il, int iu,
int *h_meig, const float *w) {
// Start
int buffer_size;
cusolverDnCheevdx_bufferSize(
handle /*cusolverDnHandle_t*/, jobz /*cusolverEigMode_t*/,
range /*cusolverEigRange_t*/, uplo /*cublasFillMode_t*/, n /*int*/,
a /*const cuComplex **/, lda /*int*/, vl /*float*/, vu /*float*/,
il /*int*/, iu /*int*/, h_meig /*int **/, w /*const float **/,
&buffer_size /*int **/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCheevj.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigMode_t jobz,
cublasFillMode_t uplo, int n, cuComplex *a, int lda, float *w,
cuComplex *buffer, int buffer_size, int *info, syevjInfo_t params) {
// Start
cusolverDnCheevj(handle /*cusolverDnHandle_t*/, jobz /*cusolverEigMode_t*/,
uplo /*cublasFillMode_t*/, n /*int*/, a /*cuComplex **/,
lda /*int*/, w /*float **/, buffer /*cuComplex **/,
buffer_size /*int*/, info /*int **/, params /*syevjInfo_t*/);
// End
}
14 changes: 14 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCheevj_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigMode_t jobz,
cublasFillMode_t uplo, int n, const cuComplex *a, int lda,
const float *w, syevjInfo_t params) {
// Start
int buffer_size;
cusolverDnCheevj_bufferSize(
handle /*cusolverDnHandle_t*/, jobz /*cusolverEigMode_t*/,
uplo /*cublasFillMode_t*/, n /*int*/, a /*const cuComplex **/,
lda /*int*/, w /*const float **/, &buffer_size /*int **/,
params /*syevjInfo_t*/);
// End
}
14 changes: 14 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnChegvd.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigType_t itype,
cusolverEigMode_t jobz, cublasFillMode_t uplo, int n, cuComplex *a,
int lda, cuComplex *b, int ldb, float *w, cuComplex *buffer,
int buffer_size, int *info) {
// Start
cusolverDnChegvd(handle /*cusolverDnHandle_t*/, itype /*cusolverEigType_t*/,
jobz /*cusolverEigMode_t*/, uplo /*cublasFillMode_t*/,
n /*int*/, a /*cuComplex **/, lda /*int*/, b /*cuComplex **/,
ldb /*int*/, w /*float **/, buffer /*cuComplex **/,
buffer_size /*int*/, info /*int **/);
// End
}
15 changes: 15 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnChegvd_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigType_t itype,
cusolverEigMode_t jobz, cublasFillMode_t uplo, int n,
const cuComplex *a, int lda, const cuComplex *b, int ldb,
const float *w) {
// Start
int buffer_size;
cusolverDnChegvd_bufferSize(
handle /*cusolverDnHandle_t*/, itype /*cusolverEigType_t*/,
jobz /*cusolverEigMode_t*/, uplo /*cublasFillMode_t*/, n /*int*/,
a /*const cuComplex **/, lda /*int*/, b /*const cuComplex **/,
ldb /*int*/, w /*const float **/, &buffer_size /*int **/);
// End
}
17 changes: 17 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnChegvdx.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigType_t itype,
cusolverEigMode_t jobz, cusolverEigRange_t range,
cublasFillMode_t uplo, int n, cuComplex *a, int lda, cuComplex *b,
int ldb, float vl, float vu, int il, int iu, int *h_meig, float *w,
cuComplex *buffer, int buffer_size, int *info) {
// Start
cusolverDnChegvdx(handle /*cusolverDnHandle_t*/, itype /*cusolverEigType_t*/,
jobz /*cusolverEigMode_t*/, range /*cusolverEigRange_t*/,
uplo /*cublasFillMode_t*/, n /*int*/, a /*cuComplex **/,
lda /*int*/, b /*cuComplex **/, ldb /*int*/, vl /*float*/,
vu /*float*/, il /*int*/, iu /*int*/, h_meig /*int **/,
w /*float **/, buffer /*cuComplex **/, buffer_size /*int*/,
info /*int **/);
// End
}
18 changes: 18 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnChegvdx_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigType_t itype,
cusolverEigMode_t jobz, cusolverEigRange_t range,
cublasFillMode_t uplo, int n, const cuComplex *a, int lda,
const cuComplex *b, int ldb, float vl, float vu, int il, int iu,
int *h_meig, const float *w) {
// Start
int buffer_size;
cusolverDnChegvdx_bufferSize(
handle /*cusolverDnHandle_t*/, itype /*cusolverEigType_t*/,
jobz /*cusolverEigMode_t*/, range /*cusolverEigRange_t*/,
uplo /*cublasFillMode_t*/, n /*int*/, a /*const cuComplex **/,
lda /*int*/, b /*const cuComplex **/, ldb /*int*/, vl /*float*/,
vu /*float*/, il /*int*/, iu /*int*/, h_meig /*int **/,
w /*const float **/, &buffer_size /*int **/);
// End
}
14 changes: 14 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnChegvj.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigType_t itype,
cusolverEigMode_t jobz, cublasFillMode_t uplo, int n, cuComplex *a,
int lda, cuComplex *b, int ldb, float *w, cuComplex *buffer,
int buffer_size, int *info, syevjInfo_t params) {
// Start
cusolverDnChegvj(handle /*cusolverDnHandle_t*/, itype /*cusolverEigType_t*/,
jobz /*cusolverEigMode_t*/, uplo /*cublasFillMode_t*/,
n /*int*/, a /*cuComplex **/, lda /*int*/, b /*cuComplex **/,
ldb /*int*/, w /*float **/, buffer /*cuComplex **/,
buffer_size /*int*/, info /*int **/, params /*syevjInfo_t*/);
// End
}
16 changes: 16 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnChegvj_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cusolverEigType_t itype,
cusolverEigMode_t jobz, cublasFillMode_t uplo, int n,
const cuComplex *a, int lda, const cuComplex *b, int ldb,
const float *w, syevjInfo_t params) {
// Start
int buffer_size;
cusolverDnChegvj_bufferSize(
handle /*cusolverDnHandle_t*/, itype /*cusolverEigType_t*/,
jobz /*cusolverEigMode_t*/, uplo /*cublasFillMode_t*/, n /*int*/,
a /*const cuComplex **/, lda /*int*/, b /*const cuComplex **/,
ldb /*int*/, w /*const float **/, &buffer_size /*int **/,
params /*syevjInfo_t*/);
// End
}
12 changes: 12 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnChetrd.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cublasFillMode_t uplo, int n, cuComplex *a,
int lda, float *d, float *e, cuComplex *tau, cuComplex *buffer,
int buffer_size, int *info) {
// Start
cusolverDnChetrd(handle /*cusolverDnHandle_t*/, uplo /*cublasFillMode_t*/,
n /*int*/, a /*cuComplex **/, lda /*int*/, d /*float **/,
e /*float **/, tau /*cuComplex **/, buffer /*cuComplex **/,
buffer_size /*int*/, info /*int **/);
// End
}
13 changes: 13 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnChetrd_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cublasFillMode_t uplo, int n,
const cuComplex *a, int lda, const float *d, const float *e,
const cuComplex *tau) {
// Start
int buffer_size;
cusolverDnChetrd_bufferSize(
handle /*cusolverDnHandle_t*/, uplo /*cublasFillMode_t*/, n /*int*/,
a /*const cuComplex **/, lda /*int*/, d /*const float **/,
e /*const float **/, tau /*const cuComplex **/, &buffer_size /*int **/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCpotrf.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cublasFillMode_t uplo, int n, cuComplex *a,
int lda, cuComplex *buffer, int buffer_size, int *info) {
// Start
cusolverDnCpotrf(handle /*cusolverDnHandle_t*/, uplo /*cublasFillMode_t*/,
n /*int*/, a /*cuComplex **/, lda /*int*/,
buffer /*cuComplex **/, buffer_size /*int*/, info /*int **/);
// End
}
11 changes: 11 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCpotrf_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cublasFillMode_t uplo, int n, cuComplex *a,
int lda) {
// Start
int buffer_size;
cusolverDnCpotrf_bufferSize(
handle /*cusolverDnHandle_t*/, uplo /*cublasFillMode_t*/, n /*int*/,
a /*cuComplex **/, lda /*int*/, &buffer_size /*int **/);
// End
}
10 changes: 10 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCpotri.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cublasFillMode_t uplo, int n, cuComplex *a,
int lda, cuComplex *buffer, int buffer_size, int *info) {
// Start
cusolverDnCpotri(handle /*cusolverDnHandle_t*/, uplo /*cublasFillMode_t*/,
n /*int*/, a /*cuComplex **/, lda /*int*/,
buffer /*cuComplex **/, buffer_size /*int*/, info /*int **/);
// End
}
11 changes: 11 additions & 0 deletions clang/examples/DPCT/cuSolver/cusolverDnCpotri_bufferSize.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "cusolverDn.h"

void test(cusolverDnHandle_t handle, cublasFillMode_t uplo, int n, cuComplex *a,
int lda) {
// Start
int buffer_size;
cusolverDnCpotri_bufferSize(
handle /*cusolverDnHandle_t*/, uplo /*cublasFillMode_t*/, n /*int*/,
a /*cuComplex **/, lda /*int*/, &buffer_size /*int **/);
// End
}
Loading
Loading