-
Notifications
You must be signed in to change notification settings - Fork 1
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
[tests][modernize]Make the tests compile with hipSYCL #4
base: master
Are you sure you want to change the base?
Changes from 1 commit
89a919c
241e5c0
7ee5982
009e699
7c03871
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,7 +224,7 @@ template <typename fp> | |
static void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m, | ||
const int *n, const int *k, const fp *alpha, const fp *a, const int *lda, | ||
const fp *b, const int *ldb, const fp *beta, fp *c, const int *ldc); | ||
|
||
#ifdef NOT_HIPSYCL | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ohh.. this shouldn't be here at all... this should be in #6 ... Thanks for noticing :) But I think I'll let this be here, instead of moving it over to the other PR |
||
template <> | ||
void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m, | ||
const int *n, const int *k, const half *alpha, const half *a, const int *lda, | ||
|
@@ -255,7 +255,7 @@ void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, c | |
oneapi::mkl::aligned_free(bf); | ||
oneapi::mkl::aligned_free(cf); | ||
} | ||
|
||
#endif | ||
template <> | ||
void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m, | ||
const int *n, const int *k, const float *alpha, const float *a, const int *lda, | ||
|
@@ -291,7 +291,7 @@ template <typename fpa, typename fpc> | |
static void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m, | ||
const int *n, const int *k, const fpc *alpha, const fpa *a, const int *lda, | ||
const fpa *b, const int *ldb, const fpc *beta, fpc *c, const int *ldc); | ||
|
||
#ifdef NOT_HIPSYCL | ||
template <> | ||
void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m, | ||
const int *n, const int *k, const float *alpha, const half *a, const int *lda, | ||
|
@@ -314,7 +314,7 @@ void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, c | |
oneapi::mkl::aligned_free(af); | ||
oneapi::mkl::aligned_free(bf); | ||
} | ||
|
||
#endif | ||
template <typename fp> | ||
static void symm(CBLAS_LAYOUT layout, CBLAS_SIDE left_right, CBLAS_UPLO uplo, const int *m, | ||
const int *n, const fp *alpha, const fp *a, const int *lda, const fp *b, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it even necessary to not use
auto
? I think it should also work withauto
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhmm, it doesn't seem to be necessary anymore... I recall that a few weeks ago there was an issue with hipSYCL regarding this.