Skip to content

Commit 7e1983e

Browse files
author
Kent Knox
authored
Merge pull request #31 from amcamd/develop
remove complex and half functions from API
2 parents 0a2899d + 5786c83 commit 7e1983e

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

library/include/hipblas.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,32 +88,39 @@ HIPBLAS_EXPORT hipblasStatus_t hipblasSasum(hipblasHandle_t handle, int n, cons
8888

8989
HIPBLAS_EXPORT hipblasStatus_t hipblasDasum(hipblasHandle_t handle, int n, const double *x, int incx, double *result);
9090

91+
/* not implemented
9192
HIPBLAS_EXPORT hipblasStatus_t hipblasSasumBatched(hipblasHandle_t handle, int n, float *x, int incx, float *result, int batchCount);
9293
9394
HIPBLAS_EXPORT hipblasStatus_t hipblasDasumBatched(hipblasHandle_t handle, int n, double *x, int incx, double *result, int batchCount);
95+
*/
9496

9597
HIPBLAS_EXPORT hipblasStatus_t hipblasSaxpy(hipblasHandle_t handle, int n, const float *alpha, const float *x, int incx, float *y, int incy);
9698

9799
HIPBLAS_EXPORT hipblasStatus_t hipblasDaxpy(hipblasHandle_t handle, int n, const double *alpha, const double *x, int incx, double *y, int incy) ;
98100

101+
/* not implemented
99102
HIPBLAS_EXPORT hipblasStatus_t hipblasSaxpyBatched(hipblasHandle_t handle, int n, const float *alpha, const float *x, int incx, float *y, int incy, int batchCount);
103+
*/
100104

101105
HIPBLAS_EXPORT hipblasStatus_t hipblasScopy(hipblasHandle_t handle, int n, const float *x, int incx, float *y, int incy);
102106

103107
HIPBLAS_EXPORT hipblasStatus_t hipblasDcopy(hipblasHandle_t handle, int n, const double *x, int incx, double *y, int incy);
104108

109+
/* not implemented
105110
HIPBLAS_EXPORT hipblasStatus_t hipblasScopyBatched(hipblasHandle_t handle, int n, const float *x, int incx, float *y, int incy, int batchCount);
106111
107112
HIPBLAS_EXPORT hipblasStatus_t hipblasDcopyBatched(hipblasHandle_t handle, int n, const double *x, int incx, double *y, int incy, int batchCount);
108-
113+
*/
109114

110115
HIPBLAS_EXPORT hipblasStatus_t hipblasSdot (hipblasHandle_t handle, int n, const float *x, int incx, const float *y, int incy, float *result);
111116

112117
HIPBLAS_EXPORT hipblasStatus_t hipblasDdot (hipblasHandle_t handle, int n, const double *x, int incx, const double *y, int incy, double *result);
113118

119+
/*
114120
HIPBLAS_EXPORT hipblasStatus_t hipblasSdotBatched (hipblasHandle_t handle, int n, const float *x, int incx, const float *y, int incy, float *result, int batchCount);
115121
116122
HIPBLAS_EXPORT hipblasStatus_t hipblasDdotBatched (hipblasHandle_t handle, int n, const double *x, int incx, const double *y, int incy, double *result, int batchCount);
123+
*/
117124

118125
HIPBLAS_EXPORT hipblasStatus_t hipblasSscal(hipblasHandle_t handle, int n, const float *alpha, float *x, int incx);
119126

@@ -125,24 +132,30 @@ hipblasStatus_t hipblasCscal(hipblasHandle_t handle, int n, const hipComplex *a
125132
hipblasStatus_t hipblasZscal(hipblasHandle_t handle, int n, const hipDoubleComplex *alpha, hipDoubleComplex *x, int incx);
126133
*/
127134

135+
/* not implemented
128136
HIPBLAS_EXPORT hipblasStatus_t hipblasSscalBatched(hipblasHandle_t handle, int n, const float *alpha, float *x, int incx, int batchCount);
129137
130138
HIPBLAS_EXPORT hipblasStatus_t hipblasDscalBatched(hipblasHandle_t handle, int n, const double *alpha, double *x, int incx, int batchCount);
139+
*/
131140

132141
HIPBLAS_EXPORT hipblasStatus_t hipblasSgemv(hipblasHandle_t handle, hipblasOperation_t trans, int m, int n, const float *alpha, const float *A, int lda,
133142
const float *x, int incx, const float *beta, float *y, int incy);
134143

135144
HIPBLAS_EXPORT hipblasStatus_t hipblasDgemv(hipblasHandle_t handle, hipblasOperation_t trans, int m, int n, const double *alpha, const double *A, int lda,
136145
const double *x, int incx, const double *beta, double *y, int incy);
137146

147+
/* not implemented
138148
HIPBLAS_EXPORT hipblasStatus_t hipblasSgemvBatched(hipblasHandle_t handle, hipblasOperation_t trans, int m, int n, const float *alpha, float *A, int lda,
139149
float *x, int incx, const float *beta, float *y, int incy, int batchCount);
150+
*/
140151

141152
HIPBLAS_EXPORT hipblasStatus_t hipblasSger(hipblasHandle_t handle, int m, int n, const float *alpha, const float *x, int incx, const float *y, int incy, float *A, int lda);
142153

143154
HIPBLAS_EXPORT hipblasStatus_t hipblasDger(hipblasHandle_t handle, int m, int n, const double *alpha, const double *x, int incx, const double *y, int incy, double *A, int lda);
144155

156+
/* not implemented
145157
HIPBLAS_EXPORT hipblasStatus_t hipblasSgerBatched(hipblasHandle_t handle, int m, int n, const float *alpha, const float *x, int incx, const float *y, int incy, float *A, int lda, int batchCount);
158+
*/
146159

147160
HIPBLAS_EXPORT hipblasStatus_t hipblasSgemm(hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb,
148161
int m, int n, int k, const float *alpha, const float *A, int lda, const float *B, int ldb, const float *beta, float *C, int ldc);

library/src/hcc_detail/hipblas.cpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,11 @@ hipblasStatus_t hipblasDasum(hipblasHandle_t handle, int n, const double *x, in
164164
return rocBLASStatusToHIPStatus(rocblas_dasum((rocblas_handle)handle, n, const_cast<double*>(x), incx, result));
165165
}
166166

167+
/* not implemented
167168
hipblasStatus_t hipblasSasumBatched(hipblasHandle_t handle, int n, float *x, int incx, float *result, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
168169
169170
hipblasStatus_t hipblasDasumBatched(hipblasHandle_t handle, int n, double *x, int incx, double *result, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
170-
171+
*/
171172

172173
hipblasStatus_t hipblasSaxpy(hipblasHandle_t handle, int n, const float *alpha, const float *x, int incx, float *y, int incy) {
173174
return rocBLASStatusToHIPStatus(rocblas_saxpy((rocblas_handle)handle, n, alpha, x, incx, y, incy));
@@ -177,8 +178,9 @@ hipblasStatus_t hipblasDaxpy(hipblasHandle_t handle, int n, const double *alpha,
177178
return rocBLASStatusToHIPStatus(rocblas_daxpy((rocblas_handle)handle, n, alpha, x, incx, y, incy));
178179
}
179180

181+
/* not implemented
180182
hipblasStatus_t hipblasSaxpyBatched(hipblasHandle_t handle, int n, const float *alpha, const float *x, int incx, float *y, int incy, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
181-
183+
*/
182184

183185
hipblasStatus_t hipblasScopy(hipblasHandle_t handle, int n, const float *x, int incx, float *y, int incy){
184186
return rocBLASStatusToHIPStatus(rocblas_scopy((rocblas_handle)handle, n, x, incx, y, incy));
@@ -188,9 +190,11 @@ hipblasStatus_t hipblasDcopy(hipblasHandle_t handle, int n, const double *x, int
188190
return rocBLASStatusToHIPStatus(rocblas_dcopy((rocblas_handle)handle, n, x, incx, y, incy));
189191
}
190192

193+
/* not implemented
191194
hipblasStatus_t hipblasScopyBatched(hipblasHandle_t handle, int n, const float *x, int incx, float *y, int incy, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
192195
193196
hipblasStatus_t hipblasDcopyBatched(hipblasHandle_t handle, int n, const double *x, int incx, double *y, int incy, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
197+
*/
194198

195199

196200
hipblasStatus_t hipblasSdot (hipblasHandle_t handle, int n, const float *x, int incx, const float *y, int incy, float *result){
@@ -201,9 +205,11 @@ hipblasStatus_t hipblasDdot (hipblasHandle_t handle, int n, const double *x, int
201205
return rocBLASStatusToHIPStatus(rocblas_ddot((rocblas_handle)handle, n, x, incx, y, incy, result));
202206
}
203207

208+
/* not implemented
204209
hipblasStatus_t hipblasSdotBatched (hipblasHandle_t handle, int n, const float *x, int incx, const float *y, int incy, float *result, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
205210
206211
hipblasStatus_t hipblasDdotBatched (hipblasHandle_t handle, int n, const double *x, int incx, const double *y, int incy, double *result, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
212+
*/
207213

208214
hipblasStatus_t hipblasSscal(hipblasHandle_t handle, int n, const float *alpha, float *x, int incx){
209215
return rocBLASStatusToHIPStatus(rocblas_sscal((rocblas_handle)handle, n, alpha, x, incx));
@@ -223,9 +229,11 @@ hipblasStatus_t hipblasZscal(hipblasHandle_t handle, int n, const hipDoubleComp
223229
}
224230
*/
225231

232+
/* not implemented
226233
hipblasStatus_t hipblasSscalBatched(hipblasHandle_t handle, int n, const float *alpha, float *x, int incx, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
227234
228235
hipblasStatus_t hipblasDscalBatched(hipblasHandle_t handle, int n, const double *alpha, double *x, int incx, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
236+
*/
229237

230238
hipblasStatus_t hipblasSgemv(hipblasHandle_t handle, hipblasOperation_t trans, int m, int n, const float *alpha, const float *A, int lda,
231239
const float *x, int incx, const float *beta, float *y, int incy){
@@ -239,8 +247,10 @@ hipblasStatus_t hipblasDgemv(hipblasHandle_t handle, hipblasOperation_t trans, i
239247
return rocBLASStatusToHIPStatus(rocblas_dgemv((rocblas_handle)handle, hipOperationToHCCOperation(trans), m, n, alpha, const_cast<double*>(A), lda, const_cast<double*>(x), incx, beta, y, incy));
240248
}
241249

250+
/* not implemented
242251
hipblasStatus_t hipblasSgemvBatched(hipblasHandle_t handle, hipblasOperation_t trans, int m, int n, const float *alpha, float *A, int lda,
243252
float *x, int incx, const float *beta, float *y, int incy, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
253+
*/
244254

245255
hipblasStatus_t hipblasSger(hipblasHandle_t handle, int m, int n, const float *alpha, const float *x, int incx, const float *y, int incy, float *A, int lda){
246256
return rocBLASStatusToHIPStatus(rocblas_sger((rocblas_handle)handle, m, n, alpha, x, incx, y, incy, A, lda));
@@ -250,7 +260,9 @@ hipblasStatus_t hipblasDger(hipblasHandle_t handle, int m, int n, const double
250260
return rocBLASStatusToHIPStatus(rocblas_dger((rocblas_handle)handle, m, n, alpha, x, incx, y, incy, A, lda));
251261
}
252262

263+
/* not implemented
253264
hipblasStatus_t hipblasSgerBatched(hipblasHandle_t handle, int m, int n, const float *alpha, const float *x, int incx, const float *y, int incy, float *A, int lda, int batchCount){return HIPBLAS_STATUS_NOT_SUPPORTED;}
265+
*/
254266

255267
hipblasStatus_t hipblasSgemm(hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb,
256268
int m, int n, int k, const float *alpha, const float *A, int lda, const float *B, int ldb, const float *beta, float *C, int ldc){

0 commit comments

Comments
 (0)